Gordons Projects

--> Projects Top-Level GIT

Updated gpio program to fix some minor issues.
authorGordon Henderson <gordon@drogon.net>
Sat, 18 Aug 2012 19:07:42 +0000 (20:07 +0100)
committerGordon Henderson <gordon@drogon.net>
Sat, 18 Aug 2012 19:07:42 +0000 (20:07 +0100)
Added top-level build script for lazy building.

build [new file with mode: 0755]

diff --git a/build b/build
new file mode 100755 (executable)
index 0000000..9df047f
--- /dev/null
+++ b/build
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+if [ x$1 = "xclean" ]; then
+  echo Cleaning
+  echo
+  cd wiringPi
+  make clean
+  cd ../gpio
+  make clean
+  cd ../examples
+  make clean
+  cd ..
+else
+  echo wiringPi Build script - please wait...
+  echo
+  cd wiringPi
+  make 
+  sudo make install
+  cd ../gpio
+  make
+  sudo make install
+  cd ../examples
+  make
+  cd ..
+fi
+
+echo
+echo All Done.