home *** CD-ROM | disk | FTP | other *** search
- :
- # convert foo.info, foo.data, foo.rsrc files to a single file suitable
- # for xbin
-
- trap "rm $TMP;echo aborted;exit" 1 2 3 15
- BASENAME=$1 # argument is name of file
- TMP=/tmp/unxbin$$
- gethead < $BASENAME.info > /tmp/unxbin$$
- crc < $TMP >> $TMP
- cat $BASENAME.data >> $TMP
- crc < $BASENAME.data >> $TMP
- cat $BASENAME.rsrc >> $TMP
- crc < $BASENAME.rsrc >> $TMP
- unrun < $TMP | 8to6 > $BASENAME.hqx
- rm $TMP
-