view move-if-change @ 40572:6ae61fbe6134

(USAGE1): Show command line option --no-window-system instead of --no-windows in usage. (standard_args): Rename --no-windows to --no-window-system. (bug_reporting_address): Follow Emacs coding conventions.
author Pavel Janík <Pavel@Janik.cz>
date Wed, 31 Oct 2001 15:11:35 +0000 (2001-10-31)
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