Skip to content

Commit

Permalink
Show error if user tries to build aSmack for Smack master
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Jul 30, 2014
1 parent 81c9261 commit 4fa24c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ execute() {
setdefaults() {
# Default configuration, can be changed with script arguments
SMACK_REPO=git://github.com/Flowdalic/smack.git
SMACK_BRANCH=master
SMACK_BRANCH=
SMACK_LOCAL=false
UPDATE_REMOTE=true
BUILD_CUSTOM=
Expand Down Expand Up @@ -575,6 +575,11 @@ checkPrerequisites() {
echo "aSmack's build.bash needs GNU tar"
exit 1
fi
if [[ -z $SMACK_BRANCH ]] ; then
echo "aSmack is no longer required for Smack's master branch."
echo "You *need to* specify a branch with -b. Aborting"
exit 1
fi
}

# Main
Expand Down

0 comments on commit 4fa24c7

Please sign in to comment.