File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Relase-prep script
3
+
4
+ if [[ $# -eq 0 ]]; then
5
+ echo " Version number is required"
6
+ exit 1
7
+ fi
8
+ if [[ $# -gt 1 ]]; then
9
+ echo " Only one argument (version) is allowed"
10
+ exit 2
11
+ fi
12
+
13
+ RELEASE=$1
14
+ CUR_RELTAG=` git tag -l | tail -1`
15
+ NEW_RELTAG=v${RELEASE}
16
+
17
+ echo " Prepping for release ${RELEASE} "
18
+
19
+ cat << EOF > version.m4
20
+ m4_define([VERSION_NUMBER], [${RELEASE} ])
21
+ EOF
22
+
23
+ git commit version.m4 -s -m " Release ${RELEASE} "
24
+
25
+ git tag ${NEW_RELTAG}
26
+
27
+ autoreconf -f -i && ./configure && make DESTDIR=${PWD} /testinst && make dist
28
+ if [[ $? -ne 0 ]]; then
29
+ echo " Release prep failed"
30
+ exit 3
31
+ fi
32
+
33
+ sha512sum mod_auth_gssapi-$1 .tar.gz > mod_auth_gssapi-$1 .tar.gz.shas512sum.txt
34
+ git shortlog ${CUR_RELTAG} ..${NEW_RELTAG} | sed ' s/^\([a-Z]\)\(.*\)/* \1\2/' > shortlog.txt
35
+ echo " Release ready to be pushed"
You can’t perform that action at this time.
0 commit comments