Allows optional second argument.
This is the name of the destination file. The destination directory is determined by compare.
This commit is contained in:
parent
081413cfda
commit
d72ad93216
1 changed files with 6 additions and 1 deletions
|
@ -1,2 +1,7 @@
|
||||||
|
case $# in
|
||||||
|
1) DEST="$1" ;;
|
||||||
|
2) DEST="$2" ;;
|
||||||
|
*) echo $0 [source] destination ;;
|
||||||
|
esac
|
||||||
MACH=`(cd .. ; basename \`pwd\`)`
|
MACH=`(cd .. ; basename \`pwd\`)`
|
||||||
cmp $1 ../../../lib/${MACH}/$1
|
cmp "$1" ../../../lib/${MACH}/$DEST
|
||||||
|
|
Loading…
Reference in a new issue