X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=apps%2Ftests%2Ftkn154%2Fmakeall.sh;fp=apps%2Ftests%2Ftkn154%2Fmakeall.sh;h=a7e92614752933de8788abfe25c29fa28f504d2d;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=0000000000000000000000000000000000000000;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git diff --git a/apps/tests/tkn154/makeall.sh b/apps/tests/tkn154/makeall.sh new file mode 100755 index 00000000..a7e92614 --- /dev/null +++ b/apps/tests/tkn154/makeall.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# compile/clean all test applications +PLATFORM=$1 +OPTIONS= +STARTDIR=`pwd` +MAKEFILES=`find . -name Makefile` + +if [ $# == 0 ]; +then + echo "Usage: $0 " + exit +fi + +for m in $MAKEFILES +do + cd ${m%Makefile} + if [ "x$1" == xclean ]; + then + make clean + else + make $PLATFORM $OPTIONS; + fi + cd $STARTDIR +done +exit +