summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerman van Rink2017-11-30 18:44:57 (GMT)
committerHerman van Rink2017-11-30 18:44:57 (GMT)
commita91b85380780dbd929587925a2551c2eeea51b59 (patch)
tree772f28e94ca72fb78a1acfff30cf61ccb4976818
parentc913c1762d57f6300dac437be20ce197be95d8d9 (diff)
Extend release script to update version numbers in drupal-org.make
-rwxr-xr-xscripts/release.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 81faeee..dddf328 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -23,13 +23,14 @@ prompt_yes_no() {
}
version=$1
+oldversion=$2
major="7.x"
-if [ $# -lt 1 -o "$version" = "-h" ]; then
+if [ $# -lt 2 -o "$version" = "-h" ]; then
cat <<EOF
not enough arguments
-Usage: $0 <new_version>
+Usage: $0 <new_version> <old_version>
EOF
exit 1
fi
@@ -108,6 +109,7 @@ fi
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
NEW_TAG="$major-$version"
+OLD_TAG="$major-$oldversion"
commitmsg=`git commit -m"change version information for release $version"`
echo $commitmsg
commitid=`echo $commitmsg | sed 's/^\[[^ ]* \([a-z0-9]*\)\].*$/\1/'`
@@ -129,6 +131,10 @@ rm -rf build-area/hostmaster
git clone --branch $CURRENT_BRANCH `git config remote.origin.url | sed 's/provision/hostmaster/'` build-area/hostmaster
cd build-area/hostmaster
+echo changing golden contrib versions in drupal-org.make
+sed -i'.tmp' -e "s/$major-$oldversion/$major-$version/" drupal-org.make && git add drupal-org.make && rm drupal-org.make.tmp
+git commit -m"Update version information for release $version"
+
echo changing hostmaster.make versions
ln -sf drupal-org.make hostmaster.make && git add hostmaster.make
cd -