summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-06-04 23:05:28 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-06-04 23:05:28 +0200
commita8d78224c6ea9b943357902276de7a513d0fbd8d (patch)
treeb1fc22b372792bf2cd2b3bd9add09fb3df8e71ff /redhat/genrpm.sh
parent7f3d4fcab8d85cda8766150784e9133f61110019 (diff)
downloadtde-packaging-a8d78224c6ea9b943357902276de7a513d0fbd8d.tar.gz
tde-packaging-a8d78224c6ea9b943357902276de7a513d0fbd8d.zip
RHEL/Fedora: various updates
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 45cffeee6..d80e8da36 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -1,11 +1,13 @@
#!/bin/bash
cd "$( dirname "$0" )"
+ARGS=""
while [ $# -gt 0 ]; do
case "$1" in
- "--auto") AUTO=1;;
- "--version") REQVERSION="$2"; shift;;
+ "--auto"|"-a") AUTO=1;;
+ "--version"|"-v") REQVERSION="$2"; shift;;
+ "--"*) ARGS="${ARGS} $1";;
*) COMP="${1%%/}";;
esac
shift
@@ -110,6 +112,7 @@ LOGFILE=/tmp/log.${COMP##*/}
set -x
(
rpmbuild -ba \
+ ${ARGS} \
--define "_sourcedir ${PWD}/${COMP}" \
--define "_prefix ${PREFIX:-/opt/trinity}" \
--define "version ${VERSION:-3.5.13}" \