view move-if-change @ 720:128e95ac472f

[xemacs-hg @ 2001-12-30 04:12:04 by wmperry] Avoid lots of warnings when using GTK by slapping -Wno-shadow onto the CFLAGS. Make sure to use toolbar-common.o with gtk builds now.
author wmperry
date Sun, 30 Dec 2001 04:12:08 +0000 (2001-12-30)
parents 376386a54a3c
children
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