view move-if-change @ 4842:1d775c6304d1

Use with-FOO consistently instead of enable-FOO INSTALL, PROBLEMS, configure, configure.ac: Rename all instances of enable-FOO to with-FOO. enable-FOO has long been aliased to with-FOO and we still preserve this, but formerly we randomly used enable-FOO but with-BAR.
author Ben Wing <ben@xemacs.org>
date Wed, 13 Jan 2010 02:28:37 -0600
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