diff options
author | Timothy Pearson <[email protected]> | 2011-11-04 12:48:59 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-04 12:48:59 -0500 |
commit | 169853a068683db6540e3b77542d5139bb7867d1 (patch) | |
tree | 2163209e7dc0569f9b0f68cf15284fe80f8c9e2e /redhat/genrpm.sh | |
parent | 7acfaa9e6409ed0ebdbc2e6fb67e8bc9b64b33d2 (diff) | |
parent | 43240f192dbdd0c0d267bc7c4a96f123704f0e2b (diff) | |
download | tde-packaging-169853a068683db6540e3b77542d5139bb7867d1.tar.gz tde-packaging-169853a068683db6540e3b77542d5139bb7867d1.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-x | redhat/genrpm.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh index 96d6ce7de..eb7015de2 100755 --- a/redhat/genrpm.sh +++ b/redhat/genrpm.sh @@ -1,6 +1,7 @@ #!/bin/bash cd "$( dirname "$0" )" +ARGS="$@" clear cat <<EOF @@ -21,7 +22,7 @@ EOF exit 1 fi -select COMP in $( cut -f1 "components.txt" ) ; do +select COMP in $( cut -f1 "components.txt" | grep -v "^#" ) ; do # Gets package version from 'components.txt' file VERSION=$( awk '{ if ($1 == "'${COMP}'") { print $2; } }' components.txt ) @@ -70,11 +71,14 @@ EOF esac set -x + ( rpmbuild -ba \ --define "_sourcedir ${PWD}/${COMP}" \ --define "_prefix ${PREFIX:-/opt/trinity}" \ --define "version ${VERSION:-3.5.13}" \ + $ARGS \ ${COMP}/${SPEC} || exit 1 + ) 2>&1 | tee /tmp/log set +x done |