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
377 B
Bash
Raw Permalink 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 21:19:29 +01:00
find ./ -name "*.class" > compiledSources.txt
cp find ../../src -name "res" ./ >> compiledSources.txt
jar cvmf ../../MANIFEST.MF ../ConnectFour.jar @compiledSources.txt
2020-02-25 13:28:10 +01:00
fi