view move-if-change @ 89110:baa9de960667

(ucs-bengali-to-is13194-alist, ucs-assamese-to-is13194-alist) (ucs-gurmukhi-to-is13194-alist, ucs-gujarati-to-is13194-alist) (ucs-oriya-to-is13194-alist, ucs-tamil-to-is13194-alist) (ucs-telugu-to-is13194-alist, ucs-malayalam-to-is13194-alist))): Remove declarations and let-bind them in re-written top-level loop over scripts, including ucs-devanagari-to-is13194-alist.
author Dave Love <fx@gnu.org>
date Sat, 14 Sep 2002 11:47:11 +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