home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # AUTOMATICALLY GENERATED BY gzip_package 2.5 of 1996/12/21 14:15:52.
-
- d="$1"
- n=`basename "$d" .pkg`
- p="$d/$n"
- t="/tmp/##gzip_package##$n.tar.Z"
-
- # Determine working directory used by Installer.
- # (Its contents are copied to /NextLibrary/Receipts)
- wd=`echo "$0"|sed 's:[^/]*$::;s://*$::'`
- case "$wd" in #((
- /tmp/*|/private/tmp/*) ;;
- *) wd=/tmp
- esac
- wp="$wd/$n"
-
- # Go cleanup the temporary compressed archive.
- rm -f "$t"
-
- size=`sed -n 's/^realCompressedSize \(.*\)/\1/p' "$wp.sizes"`
- [ -n "$size" ] && {
- rm -f "$wp.sizes"
-
- # Restore original values in *.sizes
- sed 's/^\(CompressedSize\).*/\1 '"$size"'/
- /^realCompressedSize/d' "$p.sizes" >"$wp.sizes"
- }
-
- # Replace gzip_package pre_ and post_install with the real scripts.
- for i in pre_install post_install
- do
- rm -f "$wp.$i"
- [ -f "$d/real_$i" ] && cp -p "$d/real_$i" "$wp.$i"
- done
-
- # Now continue with the real post_install script if there is any.
- [ -f "$wp.post_install" ] && exec "$wp.post_install" "$@"
-
- echo OK.
-