chiark / gitweb /
More changes to help reflect usage on Rev 2 / 512MB Raspberry Pi's.
[wiringPi.git] / build
diff --git a/build b/build
index 9df047fe4a1dc6f1ef74b26ab417dbfdb95213c7..740b512173ac20389dcbfc8e2b24e617fd19325e 100755 (executable)
--- a/build
+++ b/build
@@ -10,15 +10,31 @@ if [ x$1 = "xclean" ]; then
   cd ../examples
   make clean
   cd ..
+elif [ x$1 = "xuninstall" ]; then
+  echo Uninstalling
+  echo
+  echo "WiringPi library"
+  cd wiringPi
+  sudo make uninstall
+  echo
+  echo "GPIO Utility"
+  cd ../gpio
+  sudo make uninstall
+  cd ..
 else
   echo wiringPi Build script - please wait...
   echo
+  echo "WiringPi library"
   cd wiringPi
   make 
   sudo make install
+  echo
+  echo "GPIO Utility"
   cd ../gpio
   make
   sudo make install
+  echo
+  echo "Examples"
   cd ../examples
   make
   cd ..