1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash case $1 in asm) java -cp /usr/share/java/sictools/sictools.jar sic.Asm ${@:2:$#-1} ;; link) java -cp /usr/share/java/sictools/sictools.jar sic.Link ${@:2:$#-1} ;; sim) java -cp /usr/share/java/sictools/sictools.jar sic.Sim ${@:2:$#-1} ;; *) echo "usage: sictools <asm|link|sim> [<args>]" ;; esac