Package script:
tar jar and run.sh
This commit is contained in:
parent
b386665e66
commit
e3e7bf5ccd
14
package.sh
Executable file
14
package.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
GIT=$(command -v git)
|
||||||
|
HEAD=$(command -v head)
|
||||||
|
CUT=$(command -v cut)
|
||||||
|
|
||||||
|
JAR_ARTIFACT="out/artifacts/Hajj_simulation_jar/Hajj-simulation.jar"
|
||||||
|
|
||||||
|
if [ -z $"GIT" ] || [ -z $"HEAD" ] || [ -z $"CUT" ]; then
|
||||||
|
echo "Tools missing"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
tar -cvf Hajj-Simulation-$(git log | head -n1 | cut -d' ' -f2).tar.gz $JAR_ARTIFACT run.sh
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user