From 16e04091eac40784f2be6ebee442f1cc6e371347 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Thu, 19 May 2016 19:27:31 +0200 Subject: [PATCH] Release script now also bumps the install.sh version --- release.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 91e4a55f4..35954b5bc 100755 --- a/release.sh +++ b/release.sh @@ -17,6 +17,9 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ ]]; then sed -i "s/title\": .*/title\": \"v$2\",/g" gui/package.json sed -i "s/<title>Duniter.*<\/title>/<title>Duniter $2<\/title>/g" gui/index.html + # Bump the install.sh + sed -i "s/echo \"v$current\"/echo \"v$2\"/g" install.sh + # (pre)-release management if [[ "$1" =~ ^rel$ ]]; then # This is RELEASE: change the version in public installer + add the RELEASE flag @@ -37,10 +40,10 @@ if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ ]]; then git reset HEAD case "$1" in rel) - git add package.json .travis.yml appveyor.yml test/integration/branches.js gui/package.json gui/index.html install.sh + git add install.sh package.json .travis.yml appveyor.yml test/integration/branches.js gui/package.json gui/index.html install.sh ;; pre) - git add package.json .travis.yml appveyor.yml test/integration/branches.js gui/package.json gui/index.html + git add install.sh package.json .travis.yml appveyor.yml test/integration/branches.js gui/package.json gui/index.html ;; esac git commit -m "v$2" -- GitLab