From a719bb0adfe68ddad9a099dfaf6779e3a406085c Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Wed, 7 Jul 2010 05:51:23 -0400 Subject: [PATCH] Allow overriding vars --- id-rpm-build/upload-rpms.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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?" -- 1.7.10.4