4 echo "usage: $0 <quagga-release-tag> <quagga-previous-release-tag>"
9 echo "Error occurred. To rerun you may first need to delete the tag".
15 REL=${1:?Release version must be given as first argument!}
16 PREV=${2:?Previous release version must be given as second argument!}
18 TMPDIR=`mktemp -d /tmp/quagga-rel-XXXXXXXXX`
20 if [ ! -d $TMPDIR ] ; then
21 echo "Problem making temp directory ${TMPDIR}!"
25 echo "Tagging branch head as release ${REL}"
27 git tag -u 0x6FE57CA8C1A4AEA6 -m "Quagga release $REL" ${REL}
29 mkdir -p ${TMPDIR}/a || exit 1
30 mkdir -p ${TMPDIR}/verify || exit 1
32 echo "Making git archive"
34 ( git archive ${REL} | tar xC ${TMPDIR}/a ) || exit 1
36 git log ${PREV}..${REL} > ${TMPDIR}/a/${REL}.changelog.txt || exit 1
37 git log --pretty=%s ${PREV}..${REL} > ${TMPDIR}/a/${REL}.subjects.txt || exit 1
39 cd ${TMPDIR}/a || exit 1
41 echo "Doing test build of archive file and making dist tarball"
43 (autoreconf -i && ./configure && make -j && make dist-gzip) || exit 1
45 echo "Verifying dist tarball"
47 cp ${REL}.tar.gz ${TMPDIR}/verify || exit 1
49 cd ${TMPDIR}/verify || exit 1
50 tar -zxf ${REL}.tar.gz || exit 1
52 autoreconf -i && ./configure && make -j
54 cd ${TMPDIR}/a || exit 1
55 gpg -u 0x6FE57CA8C1A4AEA6 -a --detach-sign ${REL}.tar.gz
59 Release tagged as: ${REL}
61 Release files are in ${TMPDIR}/a:
63 ${TMPDIR}/a/${REL}.tar.gz
64 ${TMPDIR}/a/${REL}.tar.gz.asc
65 ${TMPDIR}/a/${REL}.changelog.txt
67 If you need to redo the release, you must delete the tag first:
71 To finish the release:
73 * push the tag to savannah:
75 git push <savannah remote name> tag ${REL}
77 * Upload the 3 files to the savannah releases area:
79 scp ${TMPDIR}/a/${REL}.tar.gz \
80 ${TMPDIR}/a/${REL}.tar.gz.asc \
81 ${TMPDIR}/a/${REL}.changelog.txt
82 <username>@dl.sv.nongnu.org:/releases/quagga
84 * Update the version list in bugzilla:
86 https://bugzilla.quagga.net/editversions.cgi?action=add&product=Quagga
88 * Add a news entry to the Savannah front page. The short list of commit
89 subjects (${TMPDIR}/a/${REL}.subjects.txt) may be useful here.
91 * Email the quagga-dev and quagga-users lists