summaryrefslogtreecommitdiffstats
path: root/redhat/buildenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/buildenv.sh')
-rw-r--r--redhat/buildenv.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/redhat/buildenv.sh b/redhat/buildenv.sh
index 837569886..91a78b746 100644
--- a/redhat/buildenv.sh
+++ b/redhat/buildenv.sh
@@ -8,7 +8,9 @@ TDE_GITBASESRC=${TDE_BASEDIR}/tde_r14
TDE_GITBASEPKG=${TDE_BASEDIR}/tde-packaging/redhat
TDE_TARBALLS=${TDE_BASEDIR}/tde-tarballs/${TDE_VERSION}
-export PATH="${PATH}:${TDE_GITBASEPKG}"
+[ -d "${TDE_PACKAGING_DIR}" ] || export TDE_PACKAGING_DIR=~/tde/tde-packaging
+
+export PATH="${PATH}:${TDE_GITBASEPKG}/build"
# Distribution suffix (e.g: .el6 , .mga3 ...)
export DIST="$( "${TDE_GITBASEPKG}/build/rpmdist.sh" --dist )"
@@ -30,13 +32,13 @@ alias tdep4='(rm -rf ${TDE_TARBALLS}; cd ${TDE_GITBASESRC}; export SUFFIX=0; exp
# Build a single package
alias cdp='cd ~/tde/tde-packaging/redhat'
-alias grp3='./genrpm.sh -v 3.5.13.2 -a'
-#alias grp4='./genrpm.sh -v 14.0.0 -a'
+
+grp3() {
+ build_rpm_package.sh "${1}" "3.5.13.2"
+}
grp4() {
- export PACKAGING_DIR=~/tde/tde-packaging
- export PATH="${PACKAGING_DIR}/redhat/build:$PATH"
- build_rpm_package.sh "${1}" "${2:-14.0.0}"
+ build_rpm_package.sh "${1}" "14.0.0"
}
# Check if tarballs are more recent than installed packages