repo.or.cz
/
emacs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(decode_coding_object): Revert part of last change.
[emacs.git]
/
move-if-change
blob
ee9e355e3e61d569f9102f4387b108c3cf6dfa04
1
#!/bin/sh
2
if
3
test -r
$2
4
then
5
if
6
cmp
$1 $2
> /
dev
/
null
7
then
8
echo
$2
is unchanged
9
rm
-f
$1
10
else
11
mv
-f
$1 $2
12
fi
13
else
14
mv
-f
$1 $2
15
fi