kami-blue/scripts/build.sh

36 lines
662 B
Bash
Raw Normal View History

2019-12-20 03:52:30 +00:00
#!/bin/bash
START_TIME="$(date +%s)"
echo "BUILD: started at $(date -d "@$START_TIME")"
cd ../
2020-02-20 01:14:49 +00:00
mkdir kblue-beta/
cp -r kamiblue/src/ kblue-beta/
2020-02-28 04:47:14 +00:00
cp -r kamiblue/gradle/ kblue-beta/
cp kamiblue/gradle.properties kblue-beta/
cp kamiblue/gradlew kblue-beta/
cp kamiblue/build.gradle kblue-beta/
2020-01-25 15:02:01 +00:00
echo "BUILD: copied"
2019-12-20 03:52:30 +00:00
2020-02-20 01:14:49 +00:00
cd kblue-beta/ || exit
2019-12-20 03:52:30 +00:00
echo "BUILD: cleaning"
./gradlew clean
2020-01-25 15:02:01 +00:00
echo "BUILD: building"
2019-12-20 03:52:30 +00:00
./gradlew build rmOld copy
cd ../
2020-02-20 01:14:49 +00:00
rm -rf kblue-beta/
2020-01-25 15:02:01 +00:00
echo "BUILD: deleted"
2019-12-20 03:52:30 +00:00
cd kamiblue/ || exit
2019-12-20 03:52:30 +00:00
2020-01-25 15:02:01 +00:00
echo "BUILD: SUCCESFUL"
2019-12-20 03:52:30 +00:00
END_TIME="$(date +%s)"
echo "BUILD: took" $(($(date +%s)-$START_TIME)) "seconds"
echo "BUILD: finished at" "$(date -d "@$END_TIME")"