home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1766 < prev    next >
Internet Message Format  |  1990-12-28  |  3KB

  1. From: kak@hico2.UUCP (Kris A. Kugel)
  2. Newsgroups: unix-pc.sources,alt.sources
  3. Subject: Patch to Instcpio.sh on Unix PC
  4. Message-ID: <258@hico2.UUCP>
  5. Date: 31 Aug 90 12:35:00 GMT
  6.  
  7. Note: known minor bug in this patch
  8.  
  9. For the five of you or so who are still running ua and the office,
  10. I've got a small patch allowing install an installable file
  11. that is still compressed.
  12.  
  13. This reduces the space necessary when you have both installable file
  14. and the unpacked contents on your disk at the same time.
  15.  
  16. The above mentioned bug is that at least on my system, the size of the
  17. cpio archive is used as an estimate of the size that will be used by
  18. the unpacked files, instead of the Size entry in the archive.
  19. (the estimate is not correct when used with a compressed archive)
  20. I suppose I could have changed this back to use Size, but I was not
  21. sure that I wanted to, seems to me I remember waiting a considerable
  22. time for cpio to read in just the Size file by itself.
  23.  
  24. This stuff was produced for a 3.51m system.
  25.  
  26. THIS FILE CONTAINS:
  27.     patch for /usr/bin/Instcpio.sh
  28.     patch for /usr/lib/ua/Suffixes
  29.  
  30.  
  31. PATCH 1: apply by hand , add this to end of /usr/lib/ua/Suffixes file
  32.   Name=Installable File
  33.   Suffix=+IN.Z
  34.   Description=*Installable File
  35.   Default=Open
  36.   Open=SH -pw /usr/bin/Instcpio.sh %o
  37.   Create = ERROR
  38.   Open=SH -pw /usr/bin/Instcpio.sh %o
  39.   Create = ERROR
  40.   Help   = EXEC -d /usr/bin/uahelp -h /usr/lib/ua/admin.hlp -t "Email Software"
  41.   
  42. PATCH 2:
  43. ----cut here--------cut here--------cut here--------cut here--------cut here----
  44. *** /usr/bin/Instcpio.sh.bak    Sat Sep 16 15:27:46 1989
  45. --- /usr/bin/Instcpio.sh    Fri Aug 31 07:50:33 1990
  46. ***************
  47. *** 58,64
  48.       The following installable software packages are
  49.       available in a public file folder:
  50.       
  51. !     `ls *+IN | sed s/+IN//gp `
  52.       
  53.   END
  54.       while true
  55.  
  56. --- 58,64 -----
  57.       The following installable software packages are
  58.       available in a public file folder:
  59.       
  60. !     `ls *+IN *+IN.Z | sed s/+IN.*$//gp `
  61.       
  62.   END
  63.       while true
  64. ***************
  65. *** 65,71
  66.           do
  67.           echo "Please type one of these names and touch Return:\c"
  68.           read FILENAME
  69. !         FILENAME=${SOURCEDIR}/${FILENAME}+IN
  70.           if [ -f "$FILENAME" ]
  71.           then
  72.           break
  73.  
  74. --- 65,71 -----
  75.           do
  76.           echo "Please type one of these names and touch Return:\c"
  77.           read FILENAME
  78. !         FILENAME=${SOURCEDIR}/${FILENAME}+IN*
  79.           if [ -f "$FILENAME" ]
  80.           then
  81.           break
  82. ***************
  83. *** 98,104
  84.   
  85.   # ~~~~~~~~~~~~~~~~~~~~~~~~~~
  86.           echo "\n\n\n\n\n\n                     Preparing for installation\n\n\n\n\n\n"
  87. !         cpio  -icBdu < $FILENAME 2>/tmp/cplog$$
  88.           err=$?
  89.           if [ "`grep \"Out of phase\" /tmp/cplog$$`" ]
  90.           then
  91.  
  92. --- 98,112 -----
  93.   
  94.   # ~~~~~~~~~~~~~~~~~~~~~~~~~~
  95.           echo "\n\n\n\n\n\n                     Preparing for installation\n\n\n\n\n\n"
  96. !         case $FILENAME in
  97. !             *.Z) ISCOMPRESS="y" ;;
  98. !         esac
  99. !         if [ "$ISCOMPRESS" = "" ]
  100. !         then
  101. !             cpio  -icBdu < $FILENAME 2>/tmp/cplog$$
  102. !         else
  103. !             zcat $FILENAME | cpio  -icBdu 2>/tmp/cplog$$
  104. !         fi
  105.           err=$?
  106.           if [ "`grep \"Out of phase\" /tmp/cplog$$`" ]
  107.           then
  108.