Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 26 lines (24 sloc) 551 Bytes
#! /bin/sh
#
# Examples build script
# Syntax: build all | clean
#
if [ /$1/ = /all/ ]; then
find . -mindepth 1 -type d | while read LANGUAGE; do
if [ -f "$LANGUAGE"/build ]; then
cd "$LANGUAGE"
./build all
cd ..
fi
done
elif [ /$1/ = /clean/ ]; then
find . -mindepth 1 -type d | while read LANGUAGE; do
if [ -f "$LANGUAGE"/build ]; then
cd "$LANGUAGE"
./build clean
cd ..
fi
done
else
echo "syntax: build all | clean"
fi