home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / rec / rollerc / 2691 < prev    next >
Encoding:
Text File  |  1992-12-26  |  4.5 KB  |  141 lines

  1. Newsgroups: rec.roller-coaster
  2. Path: sparky!uunet!portal!rivit
  3. From: rivit@shell.portal.com (Russell Michael VanTassell)
  4. Subject: - coaster.zip (0/8)
  5. Message-ID: <Bzw1xz.4v4@unix.portal.com>
  6. Sender: news@unix.portal.com
  7. Nntp-Posting-Host: jobe
  8. Organization: Portal Communications Company
  9. Date: Sat, 26 Dec 1992 22:46:46 GMT
  10. Lines: 129
  11.  
  12.     coaster.zip is a uuencoded DOS ZIPfile of an FLI animation of a
  13. "mock" coaster.
  14.  
  15.  
  16.     This description and the associated 8 parts contain the uuencoded
  17.     form of coaster.zip.
  18.  
  19.     Instructions for extraction:
  20.     ----------------------------
  21.     A) Using rn/nn news reader facilities (easiest - let the news reader do
  22.           the work! - includes automatic extraction and filesum checking):
  23.        1) Ignore the script below - just use the 'extract' feature of your
  24.           news reader to decode the other 8 pieces (NICE feature -
  25.           unfortunately not available in all versions).
  26.        2) Enjoy the resulting coaster.zip file!
  27.     B) UNIX script method (next easiest - recommended for beginners and
  28.           those interested in automatic extraction and filesum checking):
  29.        1) Extract the following shell script, removing everything before the
  30.           "shell begin here" line, and everything after the "shell end here" 
  31.           line (save as coaster.sh).
  32.        2) Save the remaining 8 file part(s) into the files specified in
  33.           their respective headers (these files should be in the same
  34.           directory as coaster.sh).
  35.        3) Execute 'sh < coaster.sh'.  This script will do all of the
  36.           extraction, concatenation, filesum checking, and decoding steps for
  37.           you, detecting any errors along the way.
  38.        4) Enjoy the resulting coaster.zip file!
  39.     C) To manually edit/patch (for those familiar with these type of files
  40.           - and/or those without UNIX!):
  41.        1) Save everything between line pairs of the text
  42.           "BEGIN --- CUT HERE --- Cut Here --- cut here ---"
  43.                           ...and...
  44.           "END --- CUT HERE --- Cut Here --- cut here ---".
  45.        2) Concatenate the resulting file part(s) together (in order!) and
  46.           pipe the result into uudecode.
  47.        3) Enjoy the resulting coaster.zip file!
  48.  
  49.     If you have any trouble with the above, I'm sure I'll get e-mail from
  50.     you... (but if you DON'T have trouble, I wouldn't mind hearing that,
  51.     either!!)
  52.  
  53. #--------shell begin here------- save as coaster.sh
  54. #! /bin/sh
  55. # TOP-LEVEL script for translating coaster.zip from uuencoded form
  56. filePart=1
  57. missingFiles=""
  58. until [ ${filePart} -eq 9 ]
  59. do
  60.   partStr="${filePart}"
  61.   test -f coaster${partStr}
  62.   fileErr=$?
  63.   if [ $fileErr -eq 0 ]
  64.   then
  65.     awk " \
  66.         /shell begin here/ { print_next = 1; } \
  67.         /shell end here/ { print_mode = 0; } \
  68.         { \
  69.           if ( print_mode ) { \
  70.             print; \
  71.           } \
  72.           if ( print_next ) { \
  73.             print_mode = 1; \
  74.             print_next = 0; \
  75.           } \
  76.         } \
  77.         " coaster${partStr} > coaster${partStr}.sh
  78.     test -f coaster${partStr}.sh
  79.     exErr=0
  80.     fileErr=$?
  81.     if [ $fileErr -eq 0 ]
  82.     then
  83.       chmod +x coaster${partStr}.sh
  84.       ./coaster${partStr}.sh
  85.       result=$?
  86.       if [ $result -eq 0 ]
  87.       then
  88.         rm -f coaster${partStr}.sh coaster${partStr}
  89.       else
  90.         if [ $result -eq 7 ]
  91.         then
  92.           rm -f coaster${partStr}.sh coaster${partStr}
  93.           missingFiles=""
  94.           break
  95.         else
  96.           if [ $result -eq 6 ]
  97.           then
  98.             exit 1
  99.           else
  100.             echo "Error in execution of coaster${partStr}.sh - continuing..."
  101.             exErr=$result
  102.           fi
  103.         fi
  104.       fi
  105.     else
  106.       echo "WARNING: File coaster${partStr}.sh doesn't exist!! - continuing..."
  107.       test -f coaster${partStr}.uu
  108.       exErr=$?
  109.     fi
  110.   else
  111.     echo "WARNING: File coaster${partStr} doesn't exist!! - continuing..."
  112.     test -f coaster${partStr}.uu
  113.     exErr=$?
  114.   fi
  115.   if [ $exErr -ne 0 ]
  116.   then
  117.     if [ "$missingFiles" = "" ]
  118.     then
  119.       missingFiles="coaster${partStr}.uu"
  120.     else
  121.       missingFiles="$missingFiles coaster${partStr}.uu"
  122.     fi
  123.   fi
  124.   filePart=`expr $filePart + 1`
  125. done
  126. if [ "$missingFiles" = "" ]
  127. then
  128.   exit 0
  129. else
  130.   echo "Cannot continue without file(s) ${missingFiles}..."
  131.   exit 1
  132. fi
  133. #--------shell end here------- save as coaster.sh
  134.  
  135.     >>> Processed using xmitBin ver. 1.8 by D. Jim Howard <<<
  136.  
  137. ------------------------------------------------------------------------
  138. RiViT@shell.portal.com                                      russ@mce.com
  139.  
  140. #include <signature.h>
  141.