view move-if-change @ 93711:147f4f022b77

(LOADDEFS): Add mh-loaddefs.el. (AUTOGENEL): mh-loaddefs is in $LOADDEFS now. (compile, compile-always, recompile): Use $LOADDEFS. ($(lisp)/mh-e/mh-loaddefs.el): Simplify rule now that autoload-ensure-default-file provides a feature. (cal-autoloads): Remove.
author Glenn Morris <rgm@gnu.org>
date Sat, 05 Apr 2008 18:52:02 +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