view move-if-change @ 104764:79d04de96b13

("ipa"): Set `forget-last-selection' to nil. ("ipa-x-sampa"): Set `forget-last-selection' to nil. Set `deterministic' to nil. ("ipa"): Bind "g" to U+0261, and "tsh" to a list of "U+02A7", "U+0074 U+0283", "U+0074 U+2040 U+0283". ("ipa-kirshenbaum", ipa-x-sampa"): Bind "g" to U+0261, and "tS" to a list of "U+02A7", "U+0074 U+0283", "U+0074 U+2040 U+0283". Fix comments.
author Juri Linkov <juri@jurta.org>
date Mon, 31 Aug 2009 18:11:35 +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