From 589a92b3ebaba5e1497dae279935f4164858ae33 Mon Sep 17 00:00:00 2001 From: keie Date: Fri, 11 Jan 1985 16:46:02 +0000 Subject: [PATCH] Allows optional second argument. This is the name of the destination file. The destination directory is determined by compare. --- mach/compare | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mach/compare b/mach/compare index 32b8be1b..fc54003f 100755 --- 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