From ab1e6244a51ffa6c1c9bf0a38c5b49639bd78d05 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 3 Oct 2012 23:37:55 +0000 Subject: use the version from pd/src/m_pd.h to set the package version in the debian/changelog svn path=/trunk/; revision=16323 --- scripts/auto-build/auto-build-common | 8 ++++++++ scripts/auto-build/pd-extended-auto-builder.sh | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts/auto-build') diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index d74fd411..74ee0cea 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -176,3 +176,11 @@ make_source_tarball() tar --directory $rootdir --exclude-vcs \ -cjpf /tmp/$debian_tarballname debian } + +set_debian_changelog_version() +{ + version=$1 + rootdir=$2 + sed -i "s|^pd-extended (.*)|pd-extended ($version-1)|" \ + $rootdir/debian/changelog +} diff --git a/scripts/auto-build/pd-extended-auto-builder.sh b/scripts/auto-build/pd-extended-auto-builder.sh index 288d6550..cf83a726 100755 --- a/scripts/auto-build/pd-extended-auto-builder.sh +++ b/scripts/auto-build/pd-extended-auto-builder.sh @@ -74,8 +74,10 @@ print_ip_address if [ "$1" = "source-tarball-only" ]; then echo "--- making source tarball ------------------------------" - version=$(get_pd_version $auto_build_root_dir) + version=`get_pd_version "$auto_build_root_dir"` tarballname=Pd-extended_$version-source.tar.bz2 + set_debian_changelog_version $version "${auto_build_root_dir}" + exit make_source_tarball "${auto_build_root_dir}" $tarballname echo "The source tarball is here:" echo " /tmp/$tarballname" -- cgit v1.2.1