]>
Commit | Line | Data |
---|---|---|
5b962abc | 1 | #!/bin/sh |
79f97624 | 2 | # |
5b962abc | 3 | # Automate generation of a new release |
79f97624 | 4 | # |
f7efc5e7 DC |
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) | |
79f97624 | 11 | |
3a01aadc | 12 | . ./VERSION |
79f97624 CH |
13 | |
14 | version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION} | |
15 | date=`date +"%-d %B %Y"` | |
16 | ||
56c84e02 AD |
17 | echo "Cleaning up" |
18 | make realclean | |
19 | ||
79f97624 CH |
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" | |
05aa7620 | 25 | git commit -a -m "${version} release" |
79f97624 CH |
26 | |
27 | echo "Tagging git repository" | |
05aa7620 | 28 | git tag -a -m "${version} release" v${version} |
79f97624 | 29 | |
3229e208 BM |
30 | echo "Making source tarball" |
31 | make dist | |
32 | ||
05aa7620 RJ |
33 | #echo "Sign the source tarball" |
34 | #gpg --detach-sign xfsprogs-${version}.tar.gz | |
79f97624 | 35 | |
3229e208 | 36 | echo "Done. Please remember to push out tags using \"git push --tags\"" |