view move-if-change @ 5225:1086297242fe

Don't throw an error if gnuclient supports GTK and XEmacs doesn't. 2010-06-02 Aidan Kehoe <kehoea@parhasard.net> * gnuclient.c (main): If gnuclient was built with GTK support, and is asking a gnuserv without GTK support to open a frame, fall back to X11, don't throw an error on the server side, invisible to the client.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 02 Jun 2010 15:31:15 +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