From e3065c388ea7c4391cb9bea7c4f973dd504e2dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Tue, 29 May 2018 17:42:27 -0300 Subject: [PATCH] Automatically update release_notes_old.md --- do-release.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/do-release.sh b/do-release.sh index 3e00bb432f..00c13cd8ce 100755 --- a/do-release.sh +++ b/do-release.sh @@ -128,15 +128,20 @@ echo " --> move any open issues to the next milestone, close the current milesto echo " --> Maybe there are some milestones on sourceforge, too: ." echo echo -echo echo "Prepare Next development version:" -echo "* Move version/release info from **docs/pages/release_notes.md** to **docs/pages/release_notes_old.md**." echo "* Update version/date info in **docs/_config.yml**." echo echo echo "Press enter to continue..." read +# update release_notes_old +OLD_RELEASE_NOTES=$(tail -n +5 docs/pages/release_notes_old.md) +NEW_RELEASE_NOTES=$(tail -n +6 docs/pages/release_notes.md) +echo "$(head -n 5 docs/pages/release_notes_old.md)" > docs/pages/release_notes_old.md +echo "$NEW_RELEASE_NOTES" >> docs/pages/release_notes_old.md +echo "$OLD_RELEASE_NOTES" >> docs/pages/release_notes_old.md + # reset release notes template cat > docs/pages/release_notes.md <