]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/tkn154/makeall.sh
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tests / tkn154 / makeall.sh
diff --git a/apps/tests/tkn154/makeall.sh b/apps/tests/tkn154/makeall.sh
new file mode 100755 (executable)
index 0000000..a7e9261
--- /dev/null
@@ -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 <platform|clean>"
+  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
+