launch.tigcc 771 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #! /bin/sh
  2. #
  3. # Compile and install the GCC4TI front-end
  4. #
  5. isbsd=`uname -a | grep "BSD"`
  6. isos=`uname -a | grep "opensolaris"`
  7. if [ "x$isbsd" = "x" -a "x$isos" = "x" ]; then
  8. #Assume GNU make
  9. make=make
  10. else
  11. make=gmake
  12. fi
  13. if [ "x$isos" = "x" ]; then
  14. #Assume GNU or BSD install
  15. install=install
  16. else
  17. install=ginstall
  18. fi
  19. iswin1=`echo $GCC4TIHOST | grep -E -i "msys|mingw|cygwin"`
  20. iswin2=`uname -a | grep -E -i "msys|mingw|cygwin"`
  21. if [ "x$iswin1" = "x" -a "x$iswin2" = "x" ]; then
  22. echo Installing GCC4TI front-end...
  23. ORG_PWD=$PWD/..
  24. cd "$ORG_PWD/sources/tigcc/src/"
  25. ${make} -e || exit 1
  26. ${install} -d "$PREFIX_GCC4TI/bin" || exit 1
  27. ${install} tigcc "$PREFIX_GCC4TI/bin" || exit 1
  28. ${make} clean
  29. cd "$ORG_PWD/scripts"
  30. echo Done.
  31. fi
  32. exit 0