You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
626 B

  1. #!/bin/bash
  2. if [ x$1 = "xclean" ]; then
  3. echo Cleaning
  4. echo
  5. cd wiringPi
  6. make clean
  7. cd ../gpio
  8. make clean
  9. cd ../examples
  10. make clean
  11. cd ..
  12. elif [ x$1 = "xuninstall" ]; then
  13. echo Uninstalling
  14. echo
  15. echo "WiringPi library"
  16. cd wiringPi
  17. sudo make uninstall
  18. echo
  19. echo "GPIO Utility"
  20. cd ../gpio
  21. sudo make uninstall
  22. cd ..
  23. else
  24. echo wiringPi Build script - please wait...
  25. echo
  26. echo "WiringPi library"
  27. cd wiringPi
  28. make
  29. sudo make install
  30. echo
  31. echo "GPIO Utility"
  32. cd ../gpio
  33. make
  34. sudo make install
  35. echo
  36. echo "Examples"
  37. cd ../examples
  38. make
  39. cd ..
  40. fi
  41. echo
  42. echo All Done.