Complete Java Project template for running and creating Jar files for Java projects, with built-in fast-pixel blitting engine.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
export PROJECT_NAME="JavaProjectTemplate"
|
|
|
|
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 ""
|
|
|
|
printf "====\tCurrent Configuration"
|
|
|
|
printf "\t====================="
|
|
|
|
printf "\n\t%-15s%20s" PROJECT_NAME ${PROJECT_NAME}
|
|
|
|
printf "\n\t%-15s%20s" PROJECT_DIR ${PROJECT_DIR}
|
|
|
|
printf "\n\t%-15s%20s" MAIN_CLASS ${MAIN_CLASS}
|
|
|
|
printf "\n\t%-15s%20s" OUT_DIR ${OUT_DIR}
|
|
|
|
printf "\n====================================================="
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
echo " Command List:"
|
|
|
|
FILES=$(ls -1 ./scripts | sed -e 's/\.sh$//' | sed -e 's/^/ /')
|
|
|
|
for f in $FILES
|
|
|
|
do
|
|
|
|
DESC="$(head -n1 ./scripts/$f.sh)"
|
|
|
|
printf "\n\t%-15s%-65s" $f "${DESC:1}"
|
|
|
|
done
|
|
|
|
echo ""
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
./scripts/$1.sh "${*:2}"
|