public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
081413c
)
Allows optional second argument.
author
keie
<none@none>
Fri, 11 Jan 1985 16:46:02 +0000
(16:46 +0000)
committer
keie
<none@none>
Fri, 11 Jan 1985 16:46:02 +0000
(16:46 +0000)
This is the name of the destination file. The destination directory
is determined by compare.
mach/compare
patch
|
blob
|
history
diff --git
a/mach/compare
b/mach/compare
index
32b8be1
..
fc54003
100755
(executable)
--- a/
mach/compare
+++ b/
mach/compare
@@
-1,2
+1,7
@@
+case $# in
+1) DEST="$1" ;;
+2) DEST="$2" ;;
+*) echo $0 [source] destination ;;
+esac
MACH=`(cd .. ; basename \`pwd\`)`
-cmp
$1 ../../../lib/${MACH}/$1
+cmp
"$1" ../../../lib/${MACH}/$DEST