build 278 B

12345678910111213141516171819
  1. #!/bin/bash
  2. BASE=$(pwd)
  3. mkdir $BASE/scripts/tmp
  4. cd $BASE/scripts
  5. if [ $# -eq 0 ]
  6. then
  7. for example in $(ls $BASE/examples); do
  8. $BASE/scripts/build-example $example
  9. done;
  10. else
  11. for example in $*; do
  12. $BASE/scripts/build-example $example
  13. done;
  14. fi
  15. rm -rf $BASE/scripts/tmp