Mercurial > emacs
view move-if-change @ 66337:14837742f3d8
(Miscellaneous Commands): Replace dired-do-relative-symlink by dired-do-relsymlink
and dired-do-relative-symlink-regexp by dired-do-relsymlink-regexp.
author | Lars Hansen <larsh@soem.dk> |
---|---|
date | Sun, 23 Oct 2005 17:45:02 +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