Set build package name based on datetime, commit

This commit is contained in:
Nicholas Kariniemi 2014-11-29 17:45:44 +02:00
parent 830451372a
commit c1b6cc7a08

View file

@ -16,4 +16,8 @@ echo "$ lein cljsbuild once prod" &&
lein cljsbuild once prod && lein cljsbuild once prod &&
echo "" && echo "" &&
echo "$ lein uberjar" && echo "$ lein uberjar" &&
lein uberjar lein uberjar &&
mkdir target/builds
RELEASE_NAME=grub-`date "+%F-%H%M"`-`git rev-parse HEAD | cut -c -10`.jar &&
mv target/grub-standalone.jar target/builds/$RELEASE_NAME &&
echo "Built package target/builds/$RELEASE_NAME"