home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.roller-coaster
- Path: sparky!uunet!portal!rivit
- From: rivit@shell.portal.com (Russell Michael VanTassell)
- Subject: - coaster.zip (0/8)
- Message-ID: <Bzw1xz.4v4@unix.portal.com>
- Sender: news@unix.portal.com
- Nntp-Posting-Host: jobe
- Organization: Portal Communications Company
- Date: Sat, 26 Dec 1992 22:46:46 GMT
- Lines: 129
-
- coaster.zip is a uuencoded DOS ZIPfile of an FLI animation of a
- "mock" coaster.
-
-
- This description and the associated 8 parts contain the uuencoded
- form of coaster.zip.
-
- Instructions for extraction:
- ----------------------------
- A) Using rn/nn news reader facilities (easiest - let the news reader do
- the work! - includes automatic extraction and filesum checking):
- 1) Ignore the script below - just use the 'extract' feature of your
- news reader to decode the other 8 pieces (NICE feature -
- unfortunately not available in all versions).
- 2) Enjoy the resulting coaster.zip file!
- B) UNIX script method (next easiest - recommended for beginners and
- those interested in automatic extraction and filesum checking):
- 1) Extract the following shell script, removing everything before the
- "shell begin here" line, and everything after the "shell end here"
- line (save as coaster.sh).
- 2) Save the remaining 8 file part(s) into the files specified in
- their respective headers (these files should be in the same
- directory as coaster.sh).
- 3) Execute 'sh < coaster.sh'. This script will do all of the
- extraction, concatenation, filesum checking, and decoding steps for
- you, detecting any errors along the way.
- 4) Enjoy the resulting coaster.zip file!
- C) To manually edit/patch (for those familiar with these type of files
- - and/or those without UNIX!):
- 1) Save everything between line pairs of the text
- "BEGIN --- CUT HERE --- Cut Here --- cut here ---"
- ...and...
- "END --- CUT HERE --- Cut Here --- cut here ---".
- 2) Concatenate the resulting file part(s) together (in order!) and
- pipe the result into uudecode.
- 3) Enjoy the resulting coaster.zip file!
-
- If you have any trouble with the above, I'm sure I'll get e-mail from
- you... (but if you DON'T have trouble, I wouldn't mind hearing that,
- either!!)
-
- #--------shell begin here------- save as coaster.sh
- #! /bin/sh
- # TOP-LEVEL script for translating coaster.zip from uuencoded form
- filePart=1
- missingFiles=""
- until [ ${filePart} -eq 9 ]
- do
- partStr="${filePart}"
- test -f coaster${partStr}
- fileErr=$?
- if [ $fileErr -eq 0 ]
- then
- awk " \
- /shell begin here/ { print_next = 1; } \
- /shell end here/ { print_mode = 0; } \
- { \
- if ( print_mode ) { \
- print; \
- } \
- if ( print_next ) { \
- print_mode = 1; \
- print_next = 0; \
- } \
- } \
- " coaster${partStr} > coaster${partStr}.sh
- test -f coaster${partStr}.sh
- exErr=0
- fileErr=$?
- if [ $fileErr -eq 0 ]
- then
- chmod +x coaster${partStr}.sh
- ./coaster${partStr}.sh
- result=$?
- if [ $result -eq 0 ]
- then
- rm -f coaster${partStr}.sh coaster${partStr}
- else
- if [ $result -eq 7 ]
- then
- rm -f coaster${partStr}.sh coaster${partStr}
- missingFiles=""
- break
- else
- if [ $result -eq 6 ]
- then
- exit 1
- else
- echo "Error in execution of coaster${partStr}.sh - continuing..."
- exErr=$result
- fi
- fi
- fi
- else
- echo "WARNING: File coaster${partStr}.sh doesn't exist!! - continuing..."
- test -f coaster${partStr}.uu
- exErr=$?
- fi
- else
- echo "WARNING: File coaster${partStr} doesn't exist!! - continuing..."
- test -f coaster${partStr}.uu
- exErr=$?
- fi
- if [ $exErr -ne 0 ]
- then
- if [ "$missingFiles" = "" ]
- then
- missingFiles="coaster${partStr}.uu"
- else
- missingFiles="$missingFiles coaster${partStr}.uu"
- fi
- fi
- filePart=`expr $filePart + 1`
- done
- if [ "$missingFiles" = "" ]
- then
- exit 0
- else
- echo "Cannot continue without file(s) ${missingFiles}..."
- exit 1
- fi
- #--------shell end here------- save as coaster.sh
-
- >>> Processed using xmitBin ver. 1.8 by D. Jim Howard <<<
-
- ------------------------------------------------------------------------
- RiViT@shell.portal.com russ@mce.com
-
- #include <signature.h>
-