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, ...
8PATH="/sbin:/usr/bin:${PATH}"
9export PATH
10echo ''
11echo 'Please report problems to Info-ZIP using:'
12echo ''
13echo '      http://info-zip.org/zip-bug.html'
14echo ''
15arch=`uname -p`
16if [ "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
22else
23   echo "Installing on \".ARCH.\" architecture..."
24   returncode=0
25fi
26echo ''
27sleep 4
28exit ${returncode:-1}
29#
30