Commit a91b8538 authored by helmo's avatar helmo

Extend release script to update version numbers in drupal-org.make

parent c913c176
...@@ -23,13 +23,14 @@ prompt_yes_no() { ...@@ -23,13 +23,14 @@ prompt_yes_no() {
} }
version=$1 version=$1
oldversion=$2
major="7.x" major="7.x"
if [ $# -lt 1 -o "$version" = "-h" ]; then if [ $# -lt 2 -o "$version" = "-h" ]; then
cat <<EOF cat <<EOF
not enough arguments not enough arguments
Usage: $0 <new_version> Usage: $0 <new_version> <old_version>
EOF EOF
exit 1 exit 1
fi fi
...@@ -108,6 +109,7 @@ fi ...@@ -108,6 +109,7 @@ fi
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
NEW_TAG="$major-$version" NEW_TAG="$major-$version"
OLD_TAG="$major-$oldversion"
commitmsg=`git commit -m"change version information for release $version"` commitmsg=`git commit -m"change version information for release $version"`
echo $commitmsg echo $commitmsg
commitid=`echo $commitmsg | sed 's/^\[[^ ]* \([a-z0-9]*\)\].*$/\1/'` commitid=`echo $commitmsg | sed 's/^\[[^ ]* \([a-z0-9]*\)\].*$/\1/'`
...@@ -129,6 +131,10 @@ rm -rf build-area/hostmaster ...@@ -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 git clone --branch $CURRENT_BRANCH `git config remote.origin.url | sed 's/provision/hostmaster/'` build-area/hostmaster
cd 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 echo changing hostmaster.make versions
ln -sf drupal-org.make hostmaster.make && git add hostmaster.make ln -sf drupal-org.make hostmaster.make && git add hostmaster.make
cd - cd -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment