From d72ad93216873f1aae2babd718eb61f7af34401b 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 32b8be1be..fc54003f9 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 -- 2.34.1