view move-if-change @ 104743:a1892c562b6d

("kirshenbaum-ipa", "x-sampa-ipa"): Two new input methods, both following widely-used Usenet conventions for mapping ASCII to the IPA. Kirshenbaum is common in sci.lang and alt.usage.english, X-SAMPA in various (mostly European) non-English language fora. X-SAMPA is slightly more complex to support in Quail that Kirshenbaum, whence the two extra function and one extra submap to support it. (x-sampa-prepend-to-keymap-entry): New function. (x-sampa-underscore-implosive): New function. (x-sampa-implosive-submap): New Quail submap.
author Juri Linkov <juri@jurta.org>
date Sun, 30 Aug 2009 23:30:46 +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