2014-11-29 13:58:21 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "# Removing old builds"
|
|
|
|
rm -rf target
|
|
|
|
rm resources/public/js/grub.js
|
|
|
|
rm resources/public/js/grub.min.js
|
|
|
|
rm -rf resources/public/js/out
|
|
|
|
echo "" &&
|
|
|
|
echo "$ lein cljsbuild once dev" &&
|
|
|
|
lein cljsbuild once dev &&
|
|
|
|
echo "" &&
|
|
|
|
echo "$ lein cljsbuild once prod" &&
|
|
|
|
lein cljsbuild once prod &&
|
|
|
|
echo "" &&
|
|
|
|
echo "$ lein uberjar" &&
|
2014-11-29 15:45:44 +00:00
|
|
|
lein uberjar &&
|
|
|
|
mkdir target/builds
|
2014-12-07 08:36:47 +00:00
|
|
|
BUILD_NAME=grub-`date "+%F-%H%M"`-`git rev-parse HEAD | cut -c -10`.jar &&
|
|
|
|
mv target/grub-standalone.jar target/builds/$BUILD_NAME &&
|
|
|
|
echo "Built package target/builds/$BUILD_NAME"
|