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

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