Mercurial > hg > xemacs-beta
view move-if-change @ 4042:f9be867eb83e
[xemacs-hg @ 2007-06-29 08:00:58 by stephent]
Quiet gcc warnings on amd64 (1/2). <87wsxn18ri.fsf@uwakimon.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Fri, 29 Jun 2007 08:01:08 +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