view move-if-change @ 5830:5f02d29a2a65

Get the previous patch wrt. FcNameUnparse right. 2014-11-23 Michael Sperber <mike@xemacs.org> * font-mgr.c (Ffc_name_unparse): Do the previous change to this file right and parse the pattern sans the charset.
author Mike Sperber <sperber@deinprogramm.de>
date Sun, 23 Nov 2014 19:26:14 +0100
parents 376386a54a3c
children
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