summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2012-05-11 18:29:42 +0300
committerFathi Boudra <fabo@debian.org>2012-05-11 18:29:42 +0300
commit7abb5f38541f33a909ae60fb03c9240e8024f0b0 (patch)
tree46c41e160140d43df201f630cacb8450f3435601
parent66150e24ae048438fc202717c477c263a3426687 (diff)
downloadlibjpeg-turbo-ci-7abb5f38541f33a909ae60fb03c9240e8024f0b0.tar.gz
Parse debian/changelog to get base version.
-rwxr-xr-xlibjpeg-turbo-ci.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjpeg-turbo-ci.sh b/libjpeg-turbo-ci.sh
index 381dafa..d08255b 100755
--- a/libjpeg-turbo-ci.sh
+++ b/libjpeg-turbo-ci.sh
@@ -3,7 +3,6 @@
set -e
pkg_source=libjpeg-turbo
-base_version=1.2.1
pkg_repository=git://git.linaro.org/people/tomgall/${pkg_source}-leb/${pkg_source}.git
git clone ${pkg_repository}
@@ -17,6 +16,7 @@ if [ -z "${git_commit}" ]; then
exit 1
fi
+base_version=`cd ${pkg_source}/branches/1.2.x && dpkg-parsechangelog | sed -n 's/^Version: //p' | cut -f1 -d '-'`
pkg_version=${base_version}+git${BUILD_NUMBER}+`date +%Y%m%d`+${git_commit}
pkg_dir=${pkg_source}-${pkg_version}
@@ -49,7 +49,7 @@ EOF
cd ..
done
-rm -rf ${pkg_source} ${pkg_dir}
+rm -rf ${pkg_source} ${pkg_dir}
keyid=B86C70FE
debsign -k${keyid} ${pkg_source}_${pkg_version_dpkg}_source.changes