|
Last change
on this file since 516fb4 was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago |
|
Initial commit based on 3.0.0alpha (here claimed as 2.4).
|
-
Property mode
set to
100755
|
|
File size:
639 bytes
|
| Line | |
|---|
| 1 | #!/bin/csh -f
|
|---|
| 2 |
|
|---|
| 3 | set path = (/bin /usr/bin)
|
|---|
| 4 |
|
|---|
| 5 | foreach i ($*)
|
|---|
| 6 | set last=$i
|
|---|
| 7 | end
|
|---|
| 8 |
|
|---|
| 9 | if (X$last:e == X) then
|
|---|
| 10 | if (! -d $last) mkdir $last
|
|---|
| 11 | endif
|
|---|
| 12 |
|
|---|
| 13 | set updates = 0
|
|---|
| 14 | echo -n incinstall:
|
|---|
| 15 | foreach i ($*)
|
|---|
| 16 | if ($i != $last) then
|
|---|
| 17 | if (-d $last) then
|
|---|
| 18 | set file=$last/`basename $i`
|
|---|
| 19 | else
|
|---|
| 20 | set file=$last
|
|---|
| 21 | endif
|
|---|
| 22 | cmp $i $file >& /dev/null
|
|---|
| 23 | if ($status != 0) then
|
|---|
| 24 | if (-f $file) chmod 644 $file
|
|---|
| 25 | cp $i $file
|
|---|
| 26 | if ($updates == 0) then
|
|---|
| 27 | echo -n " updating"
|
|---|
| 28 | set updates = 1
|
|---|
| 29 | endif
|
|---|
| 30 | echo -n " "$i
|
|---|
| 31 | endif
|
|---|
| 32 | endif
|
|---|
| 33 | end
|
|---|
| 34 |
|
|---|
| 35 | if ($updates == 0) then
|
|---|
| 36 | echo -n " no updates"
|
|---|
| 37 | endif
|
|---|
| 38 |
|
|---|
| 39 | echo ""
|
|---|
| 40 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.