mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
added zip from Info-ZIP
This commit is contained in:
parent
98c53ae526
commit
4ce5664c4b
363 changed files with 119113 additions and 0 deletions
29
third_party/infozip/zip/unix/Packaging/preinstall.in
vendored
Normal file
29
third_party/infozip/zip/unix/Packaging/preinstall.in
vendored
Normal file
|
@ -0,0 +1,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}
|
||||
#
|
Loading…
Add table
Add a link
Reference in a new issue