1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

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
This commit is contained in:
Karolin Seeger 2016-01-27 12:33:21 +01:00
parent d87077afb4
commit 19fdc7fd57

View File

@ -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}.*