summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2015-12-18 12:57:34 +0100
committerJan Kara <jack@suse.cz>2015-12-18 12:57:34 +0100
commit618a2a3a9de313dd5d7b783a232c8147cf23ae79 (patch)
tree4b710916791e9a935c3743b6a1689eef0f814d46
parent8334711574498d201a1c79936f708fef452d015b (diff)
downloadquota-tools-618a2a3a9de313dd5d7b783a232c8147cf23ae79.tar.gz
Update release script to work with new build system
Signed-off-by: Jan Kara <jack@suse.cz>
-rwxr-xr-xrelease.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/release.sh b/release.sh
index 6129607..07161b5 100755
--- a/release.sh
+++ b/release.sh
@@ -9,10 +9,12 @@ VERSION=$1
CURVERSION=`git tag | tail -1`
CURVERSION=${CURVERSION:1}
+MAJOR=${VERSION%.*}
+MINOR=${VERSION#*.}
+
# Update version in configure script
-sed -i -e 's/\[PACKAGE_VERSION\], \[".*"\],/\[PACKAGE_VERSION\], \["'$VERSION'"\],/' configure.in
-autoheader
-autoconf
+sed -i -e 's/\[quota_version_major\],\[.*\]/\[quota_version_major\],\['$MAJOR'\]/' configure.ac
+sed -i -e 's/\[quota_version_minor\],\[.*\]/\[quota_version_minor\],\['$MINOR'\]/' configure.ac
echo "Changes in quota-tools from $CURVERSION to $VERSION" >Changelog.new
git log --pretty="* %s (%an)" v$CURVERSION.. >>Changelog.new
@@ -20,11 +22,9 @@ echo "" >>Changelog.new
cat Changelog >>Changelog.new
mv Changelog.new Changelog
-git add Changelog configure.in
+git add Changelog configure.ac
git commit -s -m "Release quota-tools $VERSION"
git tag v$VERSION
# Create tarball
-make realclean
-cd ..
-tar czvf quota-$VERSION.tar.gz --exclude .git --exclude autom4te.cache quota-tools/
+make dist-gzip