From: beutel Date: Mon, 13 Aug 2007 13:48:04 +0000 (+0000) Subject: added test to see if RPMS is overridden by the environment X-Git-Tag: release_tinyos_2_1_0_0~829 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=fa7fc445666ec45b2f624a4cb8af158b25f89115 added test to see if RPMS is overridden by the environment --- diff --git a/tools/release/build-rpms b/tools/release/build-rpms index a57ad678..e3a45aab 100755 --- a/tools/release/build-rpms +++ b/tools/release/build-rpms @@ -3,7 +3,9 @@ # For linux, change to /usr/src/redhat # For my cygwin: /cygdrive/c/rpmsrc -RPMS=/usr/src/redhat +if [ -z $RPMS ]; then #test to see if RPMS is overridden by the environment + RPMS=/usr/src/redhat +fi TINYOS_VERSION=2.0.2 TINYOS_TOOLS_VERSION=1.2.4 @@ -34,7 +36,7 @@ cp tinyos-tools-$TINYOS_TOOLS_VERSION.tar.gz $RPMS/SOURCES echo "*** Creating rpms" cd $RPMS rpmbuild -bb $HERE/tinyos.spec -rpmbuild -bb $HERE/tinyos-tools.spec +#rpmbuild -bb $HERE/tinyos-tools.spec #rpmbuild -bb $HERE/task-tinydb/task-tinydb.spec #rpmbuild -bb $HERE/contrib/contrib.spec #rpmbuild -bb $HERE/vm/vm.spec