File: preinstall.in

package info (click to toggle)
zip 3.0-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,588 kB
  • sloc: ansic: 50,445; asm: 3,907; makefile: 858; sh: 42
file content (29 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# Info-ZIP Zip pre-installation script.
#
# Last revised: 2007-09-29 SMS.  Zip 3.0.
#
# pkgadd should set a good PATH, but just in case, ...
PATH="/sbin:/usr/bin:${PATH}"
export PATH
echo ''
echo 'Please report problems to Info-ZIP using:'
echo ''
echo '      http://info-zip.org/zip-bug.html'
echo ''
arch=`uname -p`
if [ "arch_${arch}" != "arch_.ARCH." ]; then
   echo "This product MUST be installed on a Solaris \".ARCH.\" system."
   echo "This system appears to have \"${arch}\" architecture, not \".ARCH.\"."
   echo "Please install the version for the \".ARCH.\" architecture."
   echo 'Aborting installation...'
   returncode=1
else
   echo "Installing on \".ARCH.\" architecture..."
   returncode=0
fi
echo ''
sleep 4
exit ${returncode:-1}
#