preinstall.in 764 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. #
  3. # Info-ZIP Zip pre-installation script.
  4. #
  5. # Last revised: 2007-09-29 SMS. Zip 3.0.
  6. #
  7. # pkgadd should set a good PATH, but just in case, ...
  8. PATH="/sbin:/usr/bin:${PATH}"
  9. export PATH
  10. echo ''
  11. echo 'Please report problems to Info-ZIP using:'
  12. echo ''
  13. echo ' http://info-zip.org/zip-bug.html'
  14. echo ''
  15. arch=`uname -p`
  16. if [ "arch_${arch}" != "arch_.ARCH." ]; then
  17. echo "This product MUST be installed on a Solaris \".ARCH.\" system."
  18. echo "This system appears to have \"${arch}\" architecture, not \".ARCH.\"."
  19. echo "Please install the version for the \".ARCH.\" architecture."
  20. echo 'Aborting installation...'
  21. returncode=1
  22. else
  23. echo "Installing on \".ARCH.\" architecture..."
  24. returncode=0
  25. fi
  26. echo ''
  27. sleep 4
  28. exit ${returncode:-1}
  29. #