File: preinstall.in

package info (click to toggle)
zip 2.32-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,592 kB
  • ctags: 5,524
  • sloc: ansic: 35,111; asm: 3,677; makefile: 740; cs: 727; sh: 42
file content (26 lines) | stat: -rwxr-xr-x 704 bytes parent folder | download
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
#!/bin/sh
echo " "
echo "REPORT ALL BUGS, PROBLEMS, AND ACCOLADES TO:"
echo " "
echo "         Zip-Bugs at www.info-zip.org"
echo " "
echo "Checking architecture platform for .ARCH. ..."
arch=`uname -p`
if [ "arch_${arch}" != "arch_.ARCH." ]; then
   echo " "
   echo "This product MUST be installed on a Solaris .ARCH. platform."
   echo "Your machine looks like it is a ${arch} platform."
   echo "Please install the version for the .ARCH. architecture."
   echo "Aborting the installation because of this. "
   echo " "
   returncode=1
 else
   echo " "
   echo "This product works on .ARCH., which you happen to have!"
   echo " "
   returncode=0
fi
echo " "
/usr/bin/sleep 4
exit ${returncode:-1}
#