forked from opendevshop/devshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-prep.sh
33 lines (25 loc) · 858 Bytes
/
release-prep.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
if [ ! $1 ]; then
echo "You must specify a version"
exit 1
else
VERSION=$1
fi
if [ ! -f install.sh ]; then
echo "install.sh not found. You must run this script in the devshop root."
exit 1
fi
RELEASE_BRANCH="release-$VERSION"
echo "Creating release branch $RELEASE_BRANCH in devshop..."
git checkout -b $RELEASE_BRANCH
echo "Creating release branch $RELEASE_BRANCH in devmaster..."
cd source/devmaster-0.x/profiles/devmaster
git checkout -b $RELEASE_BRANCH
echo "Creating release branch $RELEASE_BRANCH in devshop_provision..."
cd ../../../drush/devshop_provision
git checkout -b $RELEASE_BRANCH
echo "Release Branches created. Bump your versions in the following files, commit the changes, then run bash release.sh:"
echo "build-devmaster.make"
echo "install.sh"
echo "vars.yml"
echo "opendevshop/devmaster/VERSION.txt"