aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-03 23:37:55 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-10-03 23:37:55 +0000
commitab1e6244a51ffa6c1c9bf0a38c5b49639bd78d05 (patch)
treed8dc128f2200a8c7357783d11f69ff41848a7152 /scripts
parent1efe6b3a3fa6a7e08be4b8d8576cb4212d7972d9 (diff)
use the version from pd/src/m_pd.h to set the package version in the debian/changelog
svn path=/trunk/; revision=16323
Diffstat (limited to 'scripts')
-rw-r--r--scripts/auto-build/auto-build-common8
-rwxr-xr-xscripts/auto-build/pd-extended-auto-builder.sh4
2 files changed, 11 insertions, 1 deletions
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"