From: Jakub Skoczen Date: Wed, 7 Jul 2010 09:51:23 +0000 (-0400) Subject: Allow overriding vars X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=a719bb0adfe68ddad9a099dfaf6779e3a406085c;p=git-tools-moved-to-github.git Allow overriding vars --- diff --git a/id-rpm-build/upload-rpms.sh b/id-rpm-build/upload-rpms.sh index 471d249..4f952f1 100755 --- a/id-rpm-build/upload-rpms.sh +++ b/id-rpm-build/upload-rpms.sh @@ -1,10 +1,10 @@ -BUILD_DIR=/usr/src/redhat/ +BUILD_DIR=${BUILD_DIR:=/usr/src/redhat/} PWD=`pwd` -UPLOAD_PATH=/home/ftp/pub -UPLOAD_HOST=flurry -UPLOAD_DIR=`basename $PWD` +UPLOAD_PATH=${UPLOAD_PATH:=/home/ftp/pub} +UPLOAD_HOST=${UPLOAD_HOST:=flurry} +UPLOAD_DIR=${UPLOAD_DIR:=`basename $PWD`} UPLOAD_URI=${UPLOAD_HOST}:${UPLOAD_PATH}/${UPLOAD_DIR} -DISTRO="centos/5.5" +DISTRO=${DISTRO:="centos/5.5"} project=`basename $PWD` if test ! -f ${project}.spec; then echo "Missing ${project}.spec file. Are you in the project directory?"