diff options
author | Karolin Seeger <kseeger@samba.org> | 2016-01-27 12:33:21 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-02-15 17:41:49 +0100 |
commit | 19fdc7fd5785498044223874460f0ef13e88f576 (patch) | |
tree | 9dae3725a0f2146d8e3d07b3622ee7dda3e415f2 /script/release.sh | |
parent | d87077afb41e3602443bbd79b1466f35e087e457 (diff) | |
download | samba-19fdc7fd5785498044223874460f0ef13e88f576.tar.gz |
script/release.sh: generate announce.${tagname}.patch.txt in announcement_samba_rc()
This was only done in announcement_samba_stable() before.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Karolin Seeger <kseeger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Mon Feb 15 17:41:49 CET 2016 on sn-devel-144
Diffstat (limited to 'script/release.sh')
-rwxr-xr-x | script/release.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/script/release.sh b/script/release.sh index bd225f8adcf..7db4e53c4b5 100755 --- a/script/release.sh +++ b/script/release.sh @@ -710,6 +710,40 @@ announcement_samba_rc() { echo "<!-- END: ${bodyfile} -->" } > announce.${tagname}.body.html + local webrepo="${TMPDIR}/webrepo" + + mkdir "${webrepo}" || { + return 1 + } + git -C "${webrepo}" init || { + return 1 + } + + mkdir -p "$(dirname ${webrepo}/${headlinefile})" || { + return 1 + } + cp -a "announce.${tagname}.headline.html" "${webrepo}/${headlinefile}" || { + return 1 + } + + mkdir -p "$(dirname ${webrepo}/${bodyfile})" || { + return 1 + } + cp -a "announce.${tagname}.body.html" "${webrepo}/${bodyfile}" || { + return 1 + } + + git -C "${webrepo}" add "${headlinefile}" "${bodyfile}" || { + return 1 + } + git -C "${webrepo}" commit --signoff --message "NEWS[${version}]: Samba ${version} Available for Download" || { + return 1 + } + CLEANUP_FILES="${CLEANUP_FILES} announce.${tagname}.patch.txt" + git -C "${webrepo}" format-patch --stdout -1 HEAD > announce.${tagname}.patch.txt || { + return 1 + } + CLEANUP_FILES="${CLEANUP_FILES} announce.${tagname}.todo.txt" { ls -lart announce.${tagname}.* |