@@ -9,11 +9,75 @@ if test $# != 1; then
99fi
1010
1111version=$1
12+ year=$( date +%Y)
1213
14+ # Validate that all version numbers and copyrights have been updated...
15+ status=0
16+
17+ if grep -q v$version CHANGES.md; then
18+ if test " x$( grep v$version CHANGES.md | awk ' {print $2}' ) " = " x(YYYY-MM-DD)" ; then
19+ echo " Need to update release date in 'CHANGES.md'."
20+ status=1
21+ fi
22+ else
23+ echo " Need to add v$version to 'CHANGES.md'."
24+ status=1
25+ fi
26+
27+ temp=" $( grep AC_INIT configure.ac | awk ' {print $2}' | sed -e ' 1,$s/^\[//' -e ' 1,$s/\],$//' ) "
28+ if test " $temp " ! = $version ; then
29+ echo " Still need to update version to $version in configure.ac (saw $temp )"
30+ exit 1
31+ fi
32+
33+ temp=" $( grep SYEAR= configure.ac | awk -F \" ' {print $2}' ) "
34+ if test " $temp " ! = $year ; then
35+ echo " Still need to update SYEAR to $year in configure.ac (saw $temp )"
36+ exit 1
37+ fi
38+
39+ if test " $( grep SVERSION= configure | awk -F \" ' {print $2}' ) " ! = " $version " ; then
40+ echo " Still need to run 'autoconf -f'."
41+ exit 1
42+ elif test " $( grep SYEAR= configure | awk -F \" ' {print $2}' ) " ! = " $year " ; then
43+ echo " Still need to run 'autoconf -f'."
44+ exit 1
45+ fi
46+
47+ temp=" $( grep ' ^version:' snap/snapcraft.yaml | awk -F\" ' {print $2}' ) "
48+ if test " $temp " ! = " $version " ; then
49+ echo " Still need to update version to $version in snap/snapcraft.yaml (saw $temp )"
50+ exit 1
51+ fi
52+
53+ temp=" $( grep SVERSION vcnet/config.h | awk -F \" ' {print $2}' ) "
54+ if test " $temp " ! = " $version " ; then
55+ echo " Still need to update SVERSION in 'vcnet/config.h' (saw $temp )."
56+ exit 1
57+ fi
58+
59+ temp=" $( grep ProductVersion vcnet/htmldoc-installer.aip | head -1 | awk -F \" ' {print $4}' ) "
60+ if test " x$temp " ! = " x$version .0" ; then
61+ echo " Still need to update ProductVersion to $version .0 in 'vcnet/htmldoc-installer.aip' (saw $temp )."
62+ exit 1
63+ fi
64+
65+ temp=" $( grep SVERSION xcode/config.h | awk -F \" ' {print $2}' ) "
66+ if test " $temp " ! = " $version " ; then
67+ echo " Still need to update SVERSION in 'xcode/config.h' (saw $temp )."
68+ exit 1
69+ fi
70+
71+ if test $status = 1; then
72+ exit 1
73+ fi
74+
75+ # Create the tag and push it...
1376echo Creating tag for release...
1477git tag -s -m " Tag $version " v$version
1578git push origin v$version
1679
80+ # Create the tarballs and sign them...
1781echo Creating htmldoc-$version -source.tar.gz...
1882git archive --format tar --prefix=htmldoc-$version / HEAD | gzip -v9 > ~/Desktop/htmldoc-$version -source.tar.gz
1983gpg --detach-sign ~ /Desktop/htmldoc-$version -source.tar.gz
0 commit comments