view move-if-change @ 100314:9c9346f62ad8

* emacsclient.c [!WINDOWSNT] (EMACS_DAEMON): New define. Changes when EMACS_DAEMON is not defined: (print_help_and_exit): Don't add daemon information to help. (start_daemon_and_retry_set_socket): Make a no-op. (main): Don't set `start_daemon_if_needed' (which is initialized to 0).
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 10 Dec 2008 09:47:06 +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