view move-if-change @ 5397:a63e666bb68a

No longer create windows-874 as a Win32-specific coding system; thanks Mats! 2011-04-12 Aidan Kehoe <kehoea@parhasard.net> * mule/mule-win32-init.el (windows-874): No longer create this coding system, now it's provided by thai.el; thanks for the report of the associated Win32 build problem, Mats!
author Aidan Kehoe <kehoea@parhasard.net>
date Tue, 12 Apr 2011 13:01:07 +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