annotate move-if-change @ 34195:c43ab8c93b07
(chinese-iso-8bit): Change mime-charset name to cn-gb.
(cn-gb, gb2312): New aliases for chinese-iso-8bit.
author |
Kenichi Handa <handa@m17n.org> |
date |
Tue, 05 Dec 2000 08:33:58 +0000 (2000-12-05) |
parents |
354e0c45cedf |
children |
14a97ab281d5 |
rev |
line source |
25856
|
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
|