| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # This script runs the wordcount program in different ways, comparing | 3 # This script runs the wordcount program in different ways, comparing |
| 4 # the output from each. | 4 # the output from each. |
| 5 # | 5 # |
| 6 | 6 |
| 7 # Select the source text to be analyzed. | 7 # Select the source text to be analyzed. |
| 8 # | 8 # |
| 9 if test "x$1" = "x"; | 9 if test "x$1" = "x"; |
| 10 then echo "Usage: $0 FILENAME [ARGS...]"; exit 1; | 10 then echo "Usage: $0 FILENAME [ARGS...]"; exit 1; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 if cmp -s wc-out.txt wc-baseline.txt; | 69 if cmp -s wc-out.txt wc-baseline.txt; |
| 70 then echo hi >/dev/null; | 70 then echo hi >/dev/null; |
| 71 else echo ERROR:; | 71 else echo ERROR:; |
| 72 diff -u wc-baseline.txt wc-out.txt; | 72 diff -u wc-baseline.txt wc-out.txt; |
| 73 fi | 73 fi |
| 74 | 74 |
| 75 | 75 |
| 76 # Clean up temporary files created. | 76 # Clean up temporary files created. |
| 77 # | 77 # |
| 78 rm -rf wcdb1.db wcdb2.db wc-out.txt wc-baseline.txt | 78 rm -rf wcdb1.db wcdb2.db wc-out.txt wc-baseline.txt |
| OLD | NEW |