home *** CD-ROM | disk | FTP | other *** search
- #################################################################
- #
- # unshar - remove files from a UNIX shell archive (shar).
- #
- # This MPW tool was written by Steven A. Falco and was heavily
- # modified by myself (Bryce Jasmer) without permission because
- # Steve's version did not work for me and I couldn't locate him
- # to ask if I could modify it.
- # This tool is being sold under "PostcardWare". Please send a
- # postcard of your city or your latest vacation to me. I would
- # really appreciate hearing from you!
- #
- # Bryce Jasmer
- # Eagle Software
- # 1974 Lomond Avenue
- # Springfield, OR 97477
- #
- ################################################################
-
- duplicate -y {1} 'tempfile'
- loop
- target 'tempfile'
- cut Ñ:╞/Ñcat/ || break
-
- # works for the seperating line: cat << \SHAR_EOF > 'FILENAME'
- replace /Ñcat┼╢\(┼)¿1 >┼╢'(┼)¿2╢'┼░/ "¿2╢n¿1"
-
- # works for the seperating line: cat << "SHAR_EOF" > 'FILENAME'
- # replace /Ñcat┼╢"(┼)¿1╢"┼╢'(┼)¿2╢'┼░/ "¿2╢n¿1"
-
- find Ñ:/░/
- set filename "`catenate ñ`"
- echo 'x - "'"{filename}"'"'
- cut 1
- find Ñ:/░/
- set eofstring "`catenate ñ`"
- cut 1
- cut Ñ:╞/"{eofstring}"/
- date > "{filename}"
- target "{filename}"
- paste Ñ:░ "{filename}"
- close -y "{filename}"
- end
- close -y 'tempfile'
- delete 'tempfile'
-
- exit 0