source:
asp3_gr_sakura/trunk/utils/move-if-change@
341
Last change on this file since 341 was 317, checked in by , 7 years ago | |
---|---|
File size: 158 bytes |
Rev | Line | |
---|---|---|
[317] | 1 | #! /bin/sh |
2 | if test -r $2 | |
3 | then | |
4 | if cmp -s $1 $2 | |
5 | then | |
6 | echo $2 is unchanged | |
7 | rm -f $1 | |
8 | else | |
9 | mv -f $1 $2 | |
10 | fi | |
11 | else | |
12 | mv -f $1 $2 | |
13 | fi |
Note:
See TracBrowser
for help on using the repository browser.