view move-if-change @ 4485:57db42ba54fb

Correct a misspelling and add a space, lispref/variables.texi 2008-07-26 Aidan Kehoe <kehoea@parhasard.net> * lispref/variables.texi (Extent): Correct a misspelling of macros, add a needed space. Thank you John Paul Wallington, thank you Stephen Turnbull.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 26 Jul 2008 11:33:24 +0200
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