Mercurial > emacs
view move-if-change @ 73806:fbfa7d8c0a64
(get_server_config): Extract also the Emacs pid from the server file.
On Windows, try to force the Emacs frame to the foreground.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 07 Nov 2006 10:43:45 +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