view move-if-change @ 75875:bdb0a4edf3b9

(Glyphs): Add make-glyph-code, glyph-char, glyph-face. Rewrite glyph code description to refer to these functions. Remove details of encoding face number and char into integer code.
author Kim F. Storm <storm@cua.dk>
date Wed, 14 Feb 2007 11:31:28 +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