package_bin 787 B

123456789101112131415161718192021222324252627
  1. #! /bin/sh
  2. #
  3. # This script creates an Unix installer (self-extractible archive) using
  4. # "makeself" ( http://megastep.org/makeself/ , package "makeself").
  5. # Everything must have been built and installed prior to running this script.
  6. #
  7. if test \! -d "$TIGCC" ; then
  8. echo "Directory TIGCC=$TIGCC not found."
  9. exit 1
  10. fi
  11. MY_PWD="`dirname $0`/.."
  12. if type makeself > /dev/null 2> /dev/null ; then
  13. MAKESELF=makeself
  14. elif type makeself.sh > /dev/null 2> /dev/null ; then
  15. MAKESELF=makeself.sh
  16. else
  17. echo "MAKESELF not found. Can't generate installation script. Abort."
  18. exit 2
  19. fi
  20. rm -rf /tmp/gcc4ti
  21. cp -r "$TIGCC" /tmp/gcc4ti
  22. cp "$MY_PWD/scripts/setup.sh" /tmp/gcc4ti
  23. $MAKESELF --bzip2 /tmp/gcc4ti "$MY_PWD/gcc4ti-install.sh" "GCC4TI Install" ./setup.sh
  24. rm -rf /tmp/gcc4ti
  25. echo Done.