Created
February 23, 2011 15:52
-
-
Save Tarrasch/840588 to your computer and use it in GitHub Desktop.
Compile-run jr programs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# comile-runna jr-program | |
function ja(){ | |
clear | |
echo "Compiling $*" | |
jrc *.jr 2>&1 | grep -v "^Note: " | |
jr $* 2>&1 | grep -v "^Note: " | |
} | |
function ja_(){ | |
clear | |
echo "Compiling $*" | |
jrc *.jr && jr $* | |
} | |
function ja2(){ | |
clear | |
echo "Compiling $*" | |
a = jrc *.jr 2>&1 | grep -v "^Note: " | |
if [ "$a" ]; then | |
jr $* 2>&1 | grep -v "^Note: " | |
fi | |
# a = jrc *.jr 2>&1 | grep -v "^Note: " | |
# if [ "$a" ]; then | |
# jr $* 2>&1 | grep -v "^Note: " | |
# fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment