view move-if-change @ 57123:338c77460ae7

From Dan Nicolaescu <dann@ics.uci.edu> (term-down): Perform vertical motion if DOWN is negative. (term-exec-1): Set both TERMCAP and TERMINFO unconditionally. (term-termcap-format): Synchronyze with the eterm terminfo entry in etc/e/eterm.ti. (term-handle-colors-array): If the current foreground or background are zero (i.e. unspecified), use the foreground and background of the default face for reverse video. (term-ansi-at-eval-string, term-ansi-default-fg) (term-ansi-default-bg, term-ansi-current-temp): Delete unused variable. (term-mem): Delete ununsed function. (term-protocol-version): Increment. (term-current-face): Set to default.
author Kim F. Storm <storm@cua.dk>
date Fri, 17 Sep 2004 21:07:12 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi