Mercurial > hg > xemacs-beta
view move-if-change @ 3650:bdfcf05f635b
[xemacs-hg @ 2006-11-01 20:55:09 by adrian]
From: Jerry James <james@xemacs.org>
Subject: [PATCH 21.5] POP sync
To: XEmacs Patches <xemacs-patches@xemacs.org>
Date: Fri, 11 Aug 2006 12:24:54 -0600
Message-ID: <m3k65fb05l.fsf@jerrypc.cs.usu.edu>
author | adrian |
---|---|
date | Wed, 01 Nov 2006 20:55:14 +0000 |
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