diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-06-04 23:05:28 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-06-04 23:05:28 +0200 |
commit | a8d78224c6ea9b943357902276de7a513d0fbd8d (patch) | |
tree | b1fc22b372792bf2cd2b3bd9add09fb3df8e71ff /redhat/genrpm.sh | |
parent | 7f3d4fcab8d85cda8766150784e9133f61110019 (diff) | |
download | tde-packaging-a8d78224c6ea9b943357902276de7a513d0fbd8d.tar.gz tde-packaging-a8d78224c6ea9b943357902276de7a513d0fbd8d.zip |
RHEL/Fedora: various updates
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-x | redhat/genrpm.sh | 7 |
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}" \ |