summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_specfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/get_specfile.sh')
-rwxr-xr-xredhat/build/get_specfile.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/redhat/build/get_specfile.sh b/redhat/build/get_specfile.sh
index f82c3fde8..81c20b183 100755
--- a/redhat/build/get_specfile.sh
+++ b/redhat/build/get_specfile.sh
@@ -1,12 +1,12 @@
#!/bin/bash
PKGNAME="${1##*/}"
-TDE_VERSION="${2:-14.0.5}"
+TDE_VERSION="${2:-${TDE_VERSION:-14.0.5}}"
[ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1
-[ -d "${TDE_PACKAGING_DIR}" ] || TDE_PACKAGING_DIR=~/tde/master/tde-packaging
-[ -d "${DIST_PACKAGING_DIR}" ] || DIST_PACKAGING_DIR=${TDE_PACKAGING_DIR}/redhat
+[ -d "${TDE_PACKAGING_DIR}" ] || TDE_PACKAGING_DIR="${HOME}/tde/${TDE_BRANCH:-master}/tde-packaging"
+[ -d "${DIST_PACKAGING_DIR}" ] || DIST_PACKAGING_DIR="${TDE_PACKAGING_DIR}/redhat"
# Special case for QT3
if [ "${PKGNAME}" = "qt3" ]; then