Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

87 Zeilen
1.6 KiB

  1. #!/bin/sh
  2. check_make_ok() {
  3. if [ $? != 0 ]; then
  4. echo ""
  5. echo "Make Failed..."
  6. echo "Please check the messages and fix any problems. If you're still stuck,"
  7. echo "then please email all the output and as many details as you can to"
  8. echo " projects@drogon.net"
  9. echo ""
  10. exit 1
  11. fi
  12. }
  13. if [ x$1 = "xclean" ]; then
  14. cd wiringPi
  15. echo -n "wiringPi: " ; make clean
  16. cd ../devLib
  17. echo -n "DevLib: " ; make clean
  18. cd ../gpio
  19. echo -n "gpio: " ; make clean
  20. cd ../examples
  21. echo -n "Examples: " ; make clean
  22. cd Gertboard
  23. echo -n "Gertboard: " ; make clean
  24. cd ../PiFace
  25. echo -n "PiFace: " ; make clean
  26. cd ../q2w
  27. echo -n "Quick2Wire: " ; make clean
  28. exit
  29. fi
  30. if [ x$1 = "xuninstall" ]; then
  31. cd wiringPi
  32. echo -n "wiringPi: " ; sudo make uninstall
  33. cd ../devLib
  34. echo -n "DevLib: " ; sudo make uninstall
  35. cd ../gpio
  36. echo -n "gpio: " ; sudo make uninstall
  37. exit
  38. fi
  39. echo "wiringPi Build script"
  40. echo "====================="
  41. echo
  42. echo
  43. echo "WiringPi Library"
  44. cd wiringPi
  45. sudo make uninstall
  46. make
  47. check_make_ok
  48. sudo make install
  49. check_make_ok
  50. echo
  51. echo "WiringPi Devices Library"
  52. cd ../devLib
  53. sudo make uninstall
  54. make
  55. check_make_ok
  56. sudo make install
  57. check_make_ok
  58. echo
  59. echo "GPIO Utility"
  60. cd ../gpio
  61. make
  62. check_make_ok
  63. sudo make install
  64. check_make_ok
  65. # echo
  66. # echo "Examples"
  67. # cd ../examples
  68. # make
  69. # cd ..
  70. echo
  71. echo All Done.
  72. echo ""
  73. echo "NOTE: This is wiringPi v2, and if you need to use the lcd, Piface,"
  74. echo " Gertboard, MaxDetext, etc. routines then you must change your"
  75. echo " compile scripts to add -lwiringPiDev"
  76. echo ""