Monitoring du Phytotron
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.

build.sh 607B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # ------------------------------------------------------------------
  3. function build
  4. {
  5. echo ============= $1 ==============
  6. curdir=${PWD}
  7. cd $1
  8. make t
  9. error=$?
  10. cd ${curdir}
  11. if [ ${error} -ne 0 ]
  12. then
  13. echo === error on $1 = ${error}
  14. exit
  15. fi
  16. }
  17. # ------------------------------------------------------------------
  18. #
  19. # euh, il faut parfois tweaker l'ordre de ces modules
  20. #
  21. modules=" core serial viz/curses ui audio storage "
  22. for mod in ${modules}
  23. do
  24. build $mod
  25. done
  26. echo +++++++++++++++++++++++++++++++++++
  27. make essai
  28. # ------------------------------------------------------------------