X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fupload.sh;h=326ea34a382c2aec7bed79b3e5f4735d5578998f;hb=84c62eec2a8bb648e9e93d049656b6f91b6769b4;hp=a739e83857027106eae6c6ff2f3adb551fe2a8af;hpb=21cd6d665b303f493eab5bb9d71e198d704e914d;p=clsql.git diff --git a/debian/upload.sh b/debian/upload.sh index a739e83..326ea34 100755 --- a/debian/upload.sh +++ b/debian/upload.sh @@ -12,7 +12,6 @@ PKG_DIR=/usr/local/src/Packages/${DEBPKG} UPSTREAM_DIR=ftp.med-info.com:/home/ftp/pub/${PKG}/. FTP_DEBDIR=ftp.med-info.com:/home/ftp/pub/debian/UploadQueue - usage () { progname="`basename \"$0\"`" @@ -41,8 +40,9 @@ while [ $# != 0 ]; do shift done -VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < debian/changelog |head -1` -DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < debian/changelog |head -1` +CHANGELOG=${WORK_DIR}/debian/changelog +VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < ${CHANGELOG} |head -1` +DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < ${CHANGELOG} |head -1` pushd ${PKG_DIR} > /dev/null