mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
script/release.sh: fix off by 1 error in announce.${tagname}.mail.txt creation
Pair-Programmed-With: Karolin Seeger <kseeger@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Karolin Seeger <kseeger@samba.org>
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Thu Jan 12 15:34:25 CET 2017 on sn-devel-144
(cherry picked from commit 7870c645b7
)
Autobuild-User(v4-4-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-4-test): Fri Jan 27 11:52:07 CET 2017 on sn-devel-144
This commit is contained in:
parent
eec4a5d30c
commit
0a66921c95
@ -830,7 +830,8 @@ announcement_samba_stable() {
|
||||
top=$(cat ${TMPDIR}/WHATSNEW.txt | wc -l)
|
||||
}
|
||||
local skip=$(cat ${TMPDIR}/WHATSNEW.txt | grep -n '^[^ ]' | head -1 | cut -d ':' -f1)
|
||||
local bottom=$(expr ${top} - \( ${skip} - 1 \))
|
||||
local headlimit=$(expr ${top} - 1 )
|
||||
local taillimit=$(expr ${headlimit} - \( ${skip} - 1 \))
|
||||
|
||||
cat "announce.${tagname}.quotation.txt"
|
||||
echo ""
|
||||
@ -838,7 +839,7 @@ announcement_samba_stable() {
|
||||
echo "Release Announcements"
|
||||
echo "---------------------"
|
||||
echo ""
|
||||
head -${top} ${TMPDIR}/WHATSNEW.txt | tail -${bottom}
|
||||
head -${headlimit} ${TMPDIR}/WHATSNEW.txt | tail -${taillimit}
|
||||
echo ""
|
||||
echo "================"
|
||||
echo "Download Details"
|
||||
|
Loading…
Reference in New Issue
Block a user