Mercurial > hg > piper-vamp-js-builds
annotate build-all.sh @ 44:9c15e0964151
Try this (but it's not enough either)
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 23 Mar 2017 14:03:28 +0000 |
parents | b51164a0c0f9 |
children | 5383956f326d |
rev | line source |
---|---|
c@29 | 1 #!/bin/bash |
c@29 | 2 |
c@30 | 3 clean="" |
c@30 | 4 if [ "$1" = "clean" ]; then |
c@30 | 5 clean=yes |
c@30 | 6 fi |
c@30 | 7 |
c@29 | 8 set -eu |
c@29 | 9 |
c@29 | 10 for x in *; do |
c@30 | 11 if [ -d "$x" ] && [ -f "$x/Makefile" ]; then |
c@30 | 12 if [ -n "$clean" ]; then |
c@30 | 13 make -C "$x" clean |
c@30 | 14 fi |
c@30 | 15 make -C "$x" em |
c@29 | 16 fi |
c@29 | 17 done |
c@29 | 18 |
c@30 | 19 for x in *; do |
c@30 | 20 if [ -d "$x" ] && [ -f "$x/Makefile" ]; then |
c@30 | 21 echo |
c@33 | 22 make -C "$x" test |
c@30 | 23 fi |
c@30 | 24 done |
c@30 | 25 |
c@30 | 26 echo |
c@30 | 27 echo "All done" |
c@30 | 28 |
c@34 | 29 echo "Outputs:" |
c@34 | 30 ls -l */*.js |
c@34 | 31 |