]>
Commit | Line | Data |
---|---|---|
3a01aadc | 1 | #!/bin/bash |
79f97624 CH |
2 | # |
3 | # Automate generation a new release | |
4 | # | |
5 | ||
3a01aadc | 6 | . ./VERSION |
79f97624 CH |
7 | |
8 | version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION} | |
9 | date=`date +"%-d %B %Y"` | |
10 | ||
11 | echo "Updating CHANGES" | |
12 | sed -e "s/${version}.*/${version} (${date})/" doc/CHANGES > doc/CHANGES.tmp && \ | |
13 | mv doc/CHANGES.tmp doc/CHANGES | |
14 | ||
15 | echo "Commiting CHANGES update to git" | |
3a01aadc | 16 | git commit -s -a -m "${version} release" |
79f97624 CH |
17 | |
18 | echo "Tagging git repository" | |
3a01aadc | 19 | git tag -s -a -m "${version} release" v${version} |
79f97624 | 20 | |
c0251dab AE |
21 | echo "Done. Please remember to push out tags using \"git push --tags\"" |
22 | echo "If you wish to create a source tarball, run \"make dist\"" | |
79f97624 | 23 |