X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Fmake-upstream.sh;h=97c27d87383a97ce9a6aefa033f3b597c131a778;hb=6c56e4b7ea67e6e251508fbe05d486caf744c8ce;hp=7a601d5e31407fbbdaa28ada3dd6195a948bebcb;hpb=98eff0a90b337209cc23e955fdc38e33589c4d8a;p=clsql.git diff --git a/debian/make-upstream.sh b/debian/make-upstream.sh index 7a601d5..97c27d8 100755 --- a/debian/make-upstream.sh +++ b/debian/make-upstream.sh @@ -39,10 +39,11 @@ DEBPKG=cl-sql PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG} WORK_DIR=/usr/local/src/Work/${PKG} + +VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < ${WORK_DIR}/debian/changelog |head -1` DISTDIR=${PKG}-${VERSION} DEBDIR=${DEBPKG}-${VERSION} -VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < ${WORK_DIR}/debian/changelog |head -1` if [ -z "${VERSION}" ]; then echo "Can't find Debian changelog" exit 1