選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

81 行
1.4 KiB

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