Mercurial > hg > xemacs-beta
view move-if-change @ 1093:be6f88260aa4
[xemacs-hg @ 2002-11-11 14:23:45 by stephent]
too much wa <87y980yynk.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Mon, 11 Nov 2002 14:23:50 +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