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