Use ftp.indexdata.dk for upload (same as id-pbuild.sh)
[git-tools-moved-to-github.git] / id-rpm-build / upload-rpms.sh
index 6cbe525..ee83ce9 100755 (executable)
@@ -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:=ftp.indexdata.dk}
 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`