Преглед на файлове

Allows optional second argument.
This is the name of the destination file. The destination directory
is determined by compare.

keie преди 39 години
родител
ревизия
589a92b3eb
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      mach/compare

+ 6 - 1
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