view move-if-change @ 79378:117a9d753a44

(iso-translate-conventions): Doc fix. (iso-aggressive-german-trans-tab, iso-conservative-german-trans-tab, iso-tex2iso-trans-tab, iso-gtex2iso-trans-tab): Reflow docstring. (iso-spanish, iso-german, iso-iso2tex, iso-tex2iso, iso-gtex2iso, iso-iso2gtex, iso-iso2duden, iso-iso2sgml, iso-sgml2iso): Rewrite in active voice.
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 11 Nov 2007 22:31:22 +0000
parents 354e0c45cedf
children 14a97ab281d5
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