summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-06-30 21:15:08 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-06-30 21:15:08 +0200
commit2d4b1216e089a2259539e514761f2c11b0b93212 (patch)
tree4c8f8a151cb4be57d09f2f3a019150aa07ff9ef9 /redhat/genrpm.sh
parent2150025507b510d1a8c40872487ac191ce12b02b (diff)
downloadtde-packaging-2d4b1216e089a2259539e514761f2c11b0b93212.tar.gz
tde-packaging-2d4b1216e089a2259539e514761f2c11b0b93212.zip
RPM Packaging: updates
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index f5c65ed4b..4b8c496c1 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -3,8 +3,6 @@
cd "$( dirname "$0" )"
ARGS=""
-#eval TARBALLS_DIR=~/tde/tde-tarballs/3.5.13.2
-eval TARBALLS_DIR=~/tde/tde-tarballs/14.0.0
DIST="$(rpmdist.sh --dist)"
# CCACHE related stuff
@@ -25,6 +23,13 @@ while [ $# -gt 0 ]; do
shift
done
+if [ -d ~/tde/tde-tarballs/${REQVERSION} ]; then
+ eval TARBALLS_DIR=~/tde/tde-tarballs/${REQVERSION}
+else
+ eval TARBALLS_DIR=~/tde/tde-tarballs/3.5.13.2
+ #eval TARBALLS_DIR=~/tde/tde-tarballs/14.0.0
+fi
+
clear
cat <<EOF
$(< /etc/redhat-release) [$(uname -m)]