jtalk 593 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. USAGE=" $0 [OPTIONS]\n\n
  3. The currently defined set of flags is:\n\n
  4. -o category\t fileout compiled classes in category\n
  5. -f file \t filein file\n"
  6. FILE=''
  7. CATEGORY=''
  8. if [ $# == 0 ]; then
  9. echo -e $USAGE
  10. exit 1
  11. fi
  12. while getopts f:o:h o
  13. do case "$o" in
  14. f) FILE="$OPTARG";;
  15. o) CATEGORY="$OPTARG";;
  16. h) echo -e "Usage:"
  17. echo -e $USAGE
  18. exit 1;;
  19. esac
  20. done
  21. d8 ./js/boot.js ./js/kernel.js ./js/parser.js ./js/compiler.js ./js/canvas.js ./js/init.js ./scripts/compile.js -- $FILE $CATEGORY