home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / dak / install / i.unw < prev    next >
Text File  |  1998-08-19  |  867b  |  33 lines

  1. #ident    "@(#)pkg.ihvhba:i386/pkg/ihvhba/dak/i.unw    1.1"
  2. #
  3. # 'unw' CLASS installation script to unwind compressed cpio archive
  4. #
  5. # input: src  - pathname to compressed cpio archive on installation medium 
  6. #     dest - pathname of temporary file required for package verification
  7. #
  8.  
  9. while read src dest
  10. do
  11.     # Create a hook dest file for package file verification
  12.     touch $dest
  13.     cd /
  14.  
  15.     # Unwind $PGKINST files from compressed cpio archive
  16.     cpio -idDZ -I $src "*/$PKGINST/*" >/dev/null 2>&1 || exit 1
  17.  
  18.     if [ "$install_list" ]
  19.     then
  20.         install_list="$install_list\n$dest"
  21.     else
  22.         install_list="$dest"
  23.     fi
  24. done 
  25.  
  26. ###
  27. # We have to installf all $dest's in order to make sure package file
  28. # attribute verification will pass later during pkginstall.  We will
  29. # removef it in the postinstall script.
  30. ###
  31. echo "$install_list" | installf -c unw $PKGINST -
  32. installf -f $PKGINST || exit 2
  33.