This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
connect-four/build/build.sh

14 lines
375 B
Bash
Raw Normal View History

2020-02-25 13:28:10 +01:00
if [ $1 == 'clean' ]
then
rm -r ./compiled/*
rm ConnectFour.jar
else
mkdir ./compiled
cd ./compiled
find ../../src -name "*.java" > sources.txt
javac -d ./ @sources.txt
2020-02-25 20:06:44 +01:00
find ../../res -name "*" > compiledSources.txt
2020-02-25 13:28:10 +01:00
find -name "*.class" > compiledSources.txt
2020-02-25 20:06:44 +01:00
jar cvmf ../MANIFEST.MF ../ConnectFour.jar ../../res/* @compiledSources.txt
2020-02-25 13:28:10 +01:00
fi