home *** CD-ROM | disk | FTP | other *** search
- # ec_test - Test Expand and Contract.
- #
- # Steve Knouse
- # Apple Computer
- # 2950 N Loop W, Suite 1070
- # Houston, TX 77092
- # Applelink: KNOUSE
-
- # remove all alias's
- unalias
-
- # check the syntax
- if {#} <> 1
- echo Error: useage {0} filename
- exit
- end
-
- # get out if we can't create find or duplicate the object file
- set exit 1
- set temp_file "aaaaa_`date -s -d`"
- duplicate -y "{1}" "{temp_file}"
-
- # expand and contract the temp file
- expand "{temp_file}"
- contract "{temp_file}"
-
- # compare the original with the expanded/contracted temp file
- set exit 0
- compare "{1}" "{temp_file}"
-
- # clean up
- close -n "{temp_file}"
- delete "{temp_file}"
- set exit 1
-