From: elkabban@regent.usask.ca (Ossama Elkabbani)
Newsgroups: soc.culture.china
Subject: - horse1.ps.Z (00/10)
Date: 15 Dec 1992 17:15:07 GMT
Organization: University of Saskatchewan
Distribution: world
NNTP-Posting-Host: regent.usask.ca

	horse1.ps.Z is a uuencoded compressed postscript file. Follow
the instructions at the beginning of each parts to extract horse1.ps.Z.
Then type the command % uncompress horse1.ps.Z to get the ps file.
Enjoy!

	This description and the associated 10 parts contain the uuencoded
    form of horse1.ps.Z.

    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 10 pieces (NICE feature -
          unfortunately not available in all versions).
       2) Enjoy the resulting horse1.ps.Z 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 horse1.p.sh).
       2) Save the remaining 10 file part(s) into the files specified in
          their respective headers (these files should be in the same
          directory as horse1.p.sh).
       3) Execute 'sh < horse1.p.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 horse1.ps.Z 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 horse1.ps.Z 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 horse1.p.sh
#! /bin/sh
# TOP-LEVEL script for translating horse1.ps.Z from uuencoded form
filePart=1
missingFiles=""
until [ ${filePart} -eq 11 ]
do
  if [ ${filePart} -lt 10 ]
  then
    partStr="0${filePart}"
  else
    partStr="${filePart}"
  fi
  test -f horse1.p${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; \
          } \
        } \
        " horse1.p${partStr} > horse1.p${partStr}.sh
    test -f horse1.p${partStr}.sh
    exErr=0
    fileErr=$?
    if [ $fileErr -eq 0 ]
    then
      chmod +x horse1.p${partStr}.sh
      ./horse1.p${partStr}.sh
      result=$?
      if [ $result -eq 0 ]
      then
        rm -f horse1.p${partStr}.sh horse1.p${partStr}
      else
        if [ $result -eq 7 ]
        then
          rm -f horse1.p${partStr}.sh horse1.p${partStr}
          missingFiles=""
          break
        else
          if [ $result -eq 6 ]
          then
            exit 1
          else
            echo "Error in execution of horse1.p${partStr}.sh - continuing..."
            exErr=$result
          fi
        fi
      fi
    else
      echo "WARNING: File horse1.p${partStr}.sh doesn't exist!! - continuing..."
      test -f horse1.p${partStr}.uu
      exErr=$?
    fi
  else
    echo "WARNING: File horse1.p${partStr} doesn't exist!! - continuing..."
    test -f horse1.p${partStr}.uu
    exErr=$?
  fi
  if [ $exErr -ne 0 ]
  then
    if [ "$missingFiles" = "" ]
    then
      missingFiles="horse1.p${partStr}.uu"
    else
      missingFiles="$missingFiles horse1.p${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 horse1.p.sh

	>>> Processed using xmitBin Ver 1.6 by D. Jim Howard <<<

Newsgroups: soc.culture.china