PageRenderTime 565ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Runtime/make.sh

#
Shell | 42 lines | 28 code | 6 blank | 8 comment | 5 complexity | b0f22a71b8717f60eaf5102676dfad73 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/bin/sh
  2. #
  3. # Build run-time libraries for SWIG. This script will attempt to build libraries
  4. # for all of SWIG's target languages, but may report failures for uninstalled
  5. # packages.
  6. #
  7. necho() {
  8. if [ "`echo -n`" = "-n" ]; then
  9. echo "${@}\c"
  10. else
  11. echo -n "${@}"
  12. fi
  13. }
  14. # Script that attempts to produce different run-time libraries
  15. TARGET='perl5 python tcl ruby'
  16. echo "Building the SWIG runtime libraries."
  17. echo ""
  18. echo "The runtime libraries are only needed if you are building"
  19. echo "multiple extension modules that need to share information."
  20. echo ""
  21. echo "*** Note ***"
  22. echo "Some of these builds may fail due to uninstalled packages."
  23. echo "If a build fails and you want to know what is wrong, do"
  24. echo "a manual build by going into the Runtime directory and"
  25. echo "typing 'make target' where target is the name of the target"
  26. echo "that is failing."
  27. echo ""
  28. for i in ${TARGET}; do
  29. necho " Building ${i}";
  30. if make ${i} >/dev/null 2>&1; then
  31. # See if SWIG generated any errors at all
  32. echo " ....... OK.";
  33. else
  34. echo " ....... failed.";
  35. fi;
  36. done