Include sig command pipeline

main
sigonasr2, Sig, Sigo 3 years ago
parent f59629cc29
commit 1a7147d28d
  1. 4
      META-INF/MANIFEST.MF
  2. BIN
      PolygonFill.jar
  3. BIN
      bin/PolygonFill.jar
  4. 6
      scripts/build.sh
  5. 2
      scripts/clean.sh
  6. 4
      scripts/commit.sh
  7. 12
      scripts/jar.sh
  8. 18
      sig

@ -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

18
sig

@ -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…
Cancel
Save