Mercurial > emacs
view move-if-change @ 97756:7e52eba0b75f
X-coding-system incompatibility:
http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg00855.html
"This appears to be fixed in emacs 22.1.1."
"That's as good as we can hope for, I think."
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 27 Aug 2008 07:05:33 +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