add mkj's usage message
authorewt <devnull@localhost>
Mon, 13 Jan 1997 17:23:43 +0000 (17:23 +0000)
committerewt <devnull@localhost>
Mon, 13 Jan 1997 17:23:43 +0000 (17:23 +0000)
CVS patchset: 1272
CVS date: 1997/01/13 17:23:43

gendiff

diff --git a/gendiff b/gendiff
index 0a0695f..3287936 100644 (file)
--- a/gendiff
+++ b/gendiff
@@ -1,5 +1,11 @@
 #!/bin/bash
 
+[ -z "$1" -o -z "$2" ] && {
+# usage
+  echo "usage: $0 <directory> <diff-extension>" 1>&2
+  exit 1
+}
+
 find $1 \( -name "*$2" -o -name ".*$2" \) -print |
 while read f; do
        diff -u $f ${f%%$2}