compile_backend 419 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e;
  3. COFFEE=node_modules/.bin/coffee
  4. echo Compiling app.coffee;
  5. $COFFEE -c app.coffee;
  6. echo Compiling app/coffee;
  7. $COFFEE -o app/js -c app/coffee;
  8. for dir in modules/*;
  9. do
  10. if [ -d $dir/app/coffee ]; then
  11. echo Compiling $dir/app/coffee;
  12. $COFFEE -o $dir/app/js -c $dir/app/coffee;
  13. fi
  14. if [ -e $dir/index.coffee ]; then
  15. echo Compiling $dir/index.coffee;
  16. $COFFEE -c $dir/index.coffee;
  17. fi
  18. done