Last change
on this file since 534 was
28,
checked in by arnault, 20 years ago
|
Set exe bits to *.sh
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
286 bytes
|
Rev | Line | |
---|
[2] | 1 | #!/bin/sh -f |
---|
| 2 | |
---|
| 3 | for f in $* ; do |
---|
| 4 | name=`basename $f` |
---|
| 5 | |
---|
| 6 | tr '\n' '\r' <$f >t$$ |
---|
| 7 | |
---|
| 8 | if test -r $name ; then |
---|
| 9 | diff t$$ $name >/dev/null 2>/dev/null |
---|
| 10 | s=$? |
---|
| 11 | else |
---|
| 12 | s=1 |
---|
| 13 | fi |
---|
| 14 | |
---|
| 15 | if test $s = "0" ; then |
---|
| 16 | /bin/rm -f t$$ |
---|
| 17 | else |
---|
| 18 | echo "Convert $f to $name" |
---|
| 19 | mv t$$ $name |
---|
| 20 | fi |
---|
| 21 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.