home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / unix / unxbin.sha / unxbin < prev   
Encoding:
Text File  |  1986-04-02  |  403 b   |  16 lines

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