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
2020-02-25 20:07:18 +01:00

13 lines
375 B
Bash
Executable file

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
find ../../res -name "*" > compiledSources.txt
find -name "*.class" > compiledSources.txt
jar cvmf ../MANIFEST.MF ../ConnectFour.jar ../../res/* @compiledSources.txt
fi