view move-if-change @ 2512:38caebdefb55

[xemacs-hg @ 2005-01-26 10:02:12 by ben] Separate out optimization and debugging cflags configure.in, configure.usage: Add --with-optimization, cflags-optimization, cflags-debugging. Separate out optimization and debugging arguments. Document.
author ben
date Wed, 26 Jan 2005 10:02:13 +0000
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