]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - release.sh
fsck: fix more bashisms
[thirdparty/xfsprogs-dev.git] / release.sh
1 #!/bin/sh
2 #
3 # Automate generation of a new release
4 #
5 # Need to first update these files:
6 #
7 # VERSION (with new version number)
8 # docs/CHANGES (with changelog and version/date string)
9 # configure.ac (with new version string)
10 # debian/changelog (with new release entry, only for release version)
11
12 . ./VERSION
13
14 version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
15 date=`date +"%-d %B %Y"`
16
17 echo "Cleaning up"
18 make realclean
19
20 echo "Updating CHANGES"
21 sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \
22 mv doc/CHANGES.tmp doc/CHANGES
23
24 echo "Commiting CHANGES update to git"
25 git commit -a -m "${version} release"
26
27 echo "Tagging git repository"
28 git tag -a -m "${version} release" v${version}
29
30 echo "Making source tarball"
31 make dist
32
33 #echo "Sign the source tarball"
34 #gpg --detach-sign xfsprogs-${version}.tar.gz
35
36 echo "Done. Please remember to push out tags using \"git push --tags\""