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
|
|
|
|
2019-12-24 01:48:39 +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"
|
2019-12-24 01:48:39 +00:00
|
|
|
echo "BUILD: finished at" "$(date -d "@$END_TIME")"
|