Skip to content

Instantly share code, notes, and snippets.

@Tarrasch
Created February 23, 2011 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tarrasch/840588 to your computer and use it in GitHub Desktop.
Save Tarrasch/840588 to your computer and use it in GitHub Desktop.
Compile-run jr programs
# 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