Mercurial > hg > xemacs-beta
view move-if-change @ 845:77624ff6e2da
[xemacs-hg @ 2002-05-16 15:11:22 by stephent]
docs <87d6vwrv2k.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Thu, 16 May 2002 15:11:23 +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