X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-rpm-build%2Fupload-rpms.sh;h=7b6c2092674af56c6bfdc7b3a8b476a46a22c416;hb=2fe528774e66bf84dbb9ae501c107fd8d394ccdf;hp=6cbe525d757e24b297ccd955ed0d9efa26d15e9a;hpb=0e5c8d165f908859733bd146d193b5c6125e7e7c;p=git-tools-moved-to-github.git diff --git a/id-rpm-build/upload-rpms.sh b/id-rpm-build/upload-rpms.sh index 6cbe525..7b6c209 100755 --- a/id-rpm-build/upload-rpms.sh +++ b/id-rpm-build/upload-rpms.sh @@ -1,7 +1,6 @@ -BUILD_DIR=${BUILD_DIR:=/usr/src/redhat/} PWD=`pwd` UPLOAD_PATH=${UPLOAD_PATH:=/home/ftp/pub} -UPLOAD_HOST=${UPLOAD_HOST:=flurry} +UPLOAD_HOST=${UPLOAD_HOST:=kebab} DISTRO=${DISTRO:="centos/5.5"} specfile=$1 if test ! -f ${specfile}; then @@ -12,6 +11,8 @@ if test ! -x /bin/rpm; then echo "$0: /bin/rpm missing. Install rpm" exit 1 fi +topdir=`rpm --eval "%{_topdir}"` +BUILD_DIR=${BUILD_DIR:=${topdir}} pkg_names=`rpm -q --specfile ${specfile}` pkg_short=`rpm -q --specfile ${specfile} --queryformat "%{NAME};" | cut -d ";" -f1`