summaryrefslogtreecommitdiff
path: root/gendiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-01-13 17:23:43 +0000
committerewt <devnull@localhost>1997-01-13 17:23:43 +0000
commitbd91e242c3044961d54611b0514f98cfe4959965 (patch)
tree4f5bf8af7436bac8408060543fd0575a48f81f80 /gendiff
parent052ae10749842cb1ecbe94e80d07691fc576c19e (diff)
downloadlibrpm-tizen-bd91e242c3044961d54611b0514f98cfe4959965.tar.gz
librpm-tizen-bd91e242c3044961d54611b0514f98cfe4959965.tar.bz2
librpm-tizen-bd91e242c3044961d54611b0514f98cfe4959965.zip
add mkj's usage message
CVS patchset: 1272 CVS date: 1997/01/13 17:23:43
Diffstat (limited to 'gendiff')
-rw-r--r--gendiff6
1 files changed, 6 insertions, 0 deletions
diff --git a/gendiff b/gendiff
index 0a0695f31..3287936f1 100644
--- 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}