view move-if-change @ 5357:503b9a3e5e46

xemacs.def.in.in: no longer export acons(), export Facons() instead. 2011-02-16 Aidan Kehoe <kehoea@parhasard.net> * xemacs.def.in.in: No longer export acons(), export Facons() instead, thank you Mats, Jerry and Jeff Sparkes.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 16 Feb 2011 15:35:35 +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