home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / unix / unxbin.sha / unxbin (.txt) < prev   
Microsoft Windows Help File Content  |  1986-04-02  |  403b  |  14 lines

  1. # convert foo.info, foo.data, foo.rsrc files to a single file suitable
  2. # for xbin
  3. trap "rm $TMP;echo aborted;exit" 1 2 3 15
  4. BASENAME=$1                # argument is name of file
  5. TMP=/tmp/unxbin$$
  6. gethead < $BASENAME.info > /tmp/unxbin$$
  7. crc < $TMP >> $TMP
  8. cat $BASENAME.data >> $TMP
  9. crc < $BASENAME.data >> $TMP
  10. cat $BASENAME.rsrc >> $TMP
  11. crc < $BASENAME.rsrc >> $TMP
  12. unrun < $TMP | 8to6 > $BASENAME.hqx
  13. rm $TMP
  14.