jvm-asm/build.sh

13 lines
294 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z "$1" ]
then
echo "specify the project name to build"
else
jasmin -d bin src/$1.jas
ls -lah bin/$1.class
echo -e "executing ================================================\n"
cd bin
java $1 "${@:2}" # the first arg is what java should do, the other are args
fi