Chris@2: #!/bin/bash Chris@2: Chris@3: clean="" Chris@3: if [ "$1" = "clean" ]; then Chris@3: clean=yes Chris@3: fi Chris@3: Chris@2: set -eu Chris@2: Chris@2: for x in *; do Chris@3: if [ -d "$x" ] && [ -f "$x/Makefile" ]; then Chris@3: if [ -n "$clean" ]; then Chris@3: make -C "$x" clean Chris@3: fi Chris@3: make -C "$x" em Chris@2: fi Chris@2: done Chris@2: Chris@3: for x in *; do Chris@3: if [ -d "$x" ] && [ -f "$x/Makefile" ]; then Chris@3: echo Chris@6: make -C "$x" test Chris@3: fi Chris@3: done Chris@3: Chris@3: echo Chris@3: echo "All done" Chris@3: Chris@7: echo "Outputs:" Chris@7: ls -l */*.js Chris@7: