2 # Move file 1 to file 2 if they don't already match.
3 # Good for "make depend" for example, where it'd be nice to keep the
6 echo 2>&1 usage: $0 newfile oldfilename
10 if [ ! -r "$2" ]; then
13 if cmp "$1" "$2" >/dev/null; then
14 echo "$2 is unchanged"