view move-if-change @ 106908:7d9b2b9edc21

Store settings in xft-settings for debug purposes. (apply_xft_settings): Save settings in Vxft_settings for debug purpose. (syms_of_xsettings): Declare xft-settings.
author Jan D. <jan.h.d@swipnet.se>
date Tue, 19 Jan 2010 15:54:13 +0100
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