parent
f59629cc29
commit
1a7147d28d
@ -1,4 +0,0 @@ |
||||
Manifest-Version: 1.0 |
||||
Main-Class: sig.PolygonFill |
||||
Created-By: 11.0.13 (Azul Systems, Inc.) |
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,6 @@ |
||||
rm -Rf out/* |
||||
javac -Xlint:unchecked -cp ${PROJECT_DIR}/.. -d ${OUT_DIR} ${PROJECT_DIR}/*.java |
||||
printf "\n\n\nRunning Program...\n\n" |
||||
cd $OUT_DIR |
||||
java ${MAIN_CLASS} "$@" |
||||
../scripts/clean.sh |
@ -0,0 +1,2 @@ |
||||
find . -type f -name *.class -delete |
||||
find . -type f -name manifest -delete |
@ -0,0 +1,4 @@ |
||||
git add -u |
||||
git add * |
||||
git commit -m "$*" |
||||
git push |
@ -1,15 +1,15 @@ |
||||
PROGRAM_NAME="PolygonFill" |
||||
MAIN_CLASS="sig.PolygonFill" |
||||
|
||||
rm -Rf bin/* |
||||
javac -Xlint:unchecked -cp src -d bin src/sig/${PROGRAM_NAME}.java |
||||
javac -Xlint:unchecked -cp src -d bin ${PROJECT_DIR}/${PROJECT_NAME}.java |
||||
printf "\n\n\nGenerating Manifest...\n\n" |
||||
touch manifest |
||||
echo "Main-Class: ${MAIN_CLASS}" >> manifest |
||||
printf "\n\n\nCreating Jar...\n\n" |
||||
cd bin |
||||
jar cfm ${PROGRAM_NAME}.jar ../manifest sig |
||||
cd ${OUT_DIR} |
||||
jar cfm ${PROJECT_NAME}.jar ../manifest sig |
||||
printf "\n\n\nRunning Program...\n\n" |
||||
java -jar ${PROGRAM_NAME}.jar |
||||
java -jar ${PROJECT_NAME}.jar |
||||
mv ${PROJECT_NAME}.jar .. |
||||
cd .. |
||||
./clean |
||||
./scripts/clean.sh |
@ -0,0 +1,18 @@ |
||||
export PROJECT_NAME="PolygonFill" |
||||
export PROJECT_DIR="src/sig" |
||||
export MAIN_CLASS="sig.${PROJECT_NAME}" |
||||
export OUT_DIR="bin" |
||||
|
||||
|
||||
if [ -z "$1" ] |
||||
then |
||||
echo "" |
||||
echo " Usage: ./sig <command> {args}" |
||||
echo "" |
||||
echo " Command List:" |
||||
ls -1 ./scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /' |
||||
echo "" |
||||
exit |
||||
fi |
||||
|
||||
./scripts/$1.sh "${*:2}" |
Loading…
Reference in new issue