view move-if-change @ 4383:1e04b9c8125b

Correct the make-temp-name docstring. Take the opportunity to correct the format of ChangeLog. 2008-01-03 Aidan Kehoe <kehoea@parhasard.net> * fileio.c (Fmake_temp_name): Correct the comment to cross reference to make-temp-file, and not to this function.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 03 Jan 2008 22:36:04 +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