Skip to content

Commit

Permalink
Let make-zip.sh take a version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Santos committed Sep 19, 2015
1 parent 9fbdd0b commit ee7f196
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions make-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

LEINUBERJAR=0
UPLOAD=0
while getopts "lu" opt;
# keep track of the build version
VERSION=`date +'%Y.%m.%d-%H.%M.%S'`'-'`git rev-parse --short HEAD`

while getopts "luv:" opt;
do
echo "Got opt $opt"
case "$opt" in
l) LEINUBERJAR=1;;
u) UPLOAD=1;;
v) VERSION=$OPTARG'-'`git rev-parse --short HEAD`;;
esac
done

# keep track of the build version
VERSION=`date +'%Y.%m.%d-%H.%M.%S'`'-'`git rev-parse --short HEAD`

#clean
rm target/robinson-*.zip
#rm -rf target/robinson-*
Expand Down

0 comments on commit ee7f196

Please sign in to comment.