view move-if-change @ 4325:948c9b232595

Avoid an error when clicking on Help -> Tutorials APPROVE COMMIT This is the patch of 18270.32449.777332.204409@parhasard.net , with slightly different line numbers. lisp/ChangeLog addition: 2007-12-11 Aidan Kehoe <kehoea@parhasard.net> * mule/latin.el : Specify tutorial-coding-system using dotted cons notation, since it's not a list. Prevents an error in help-with-tutorial for these languages.
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 11 Dec 2007 21:56:18 +0100
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