view move-if-change @ 4331:4fbcce3f6097

Don't use undocumented Xt functions in external widget. 2007-12-18 Kenny Chien <Kenny.Chien@morganstanley.com> * extw-Xt.c (extw_wait_for_response): Don't use undocumented internal Xt functions, avoiding inconsistent behavior between different Solaris versions.
author Mike Sperber <sperber@deinprogramm.de>
date Wed, 19 Dec 2007 10:21:38 +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