From 19fdc7fd5785498044223874460f0ef13e88f576 Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Wed, 27 Jan 2016 12:33:21 +0100 Subject: [PATCH] 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 Signed-off-by: Karolin Seeger Signed-off-by: Stefan Metzmacher Autobuild-User(master): Karolin Seeger Autobuild-Date(master): Mon Feb 15 17:41:49 CET 2016 on sn-devel-144 --- script/release.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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 "" } > 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}.*