source: bin/incinstall@ 516fb4

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).

  • simply added all files.
  • Property mode set to 100755
File size: 639 bytes
Line 
1#!/bin/csh -f
2
3set path = (/bin /usr/bin)
4
5foreach i ($*)
6 set last=$i
7 end
8
9if (X$last:e == X) then
10 if (! -d $last) mkdir $last
11 endif
12
13set updates = 0
14echo -n incinstall:
15foreach 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
35if ($updates == 0) then
36 echo -n " no updates"
37 endif
38
39echo ""
40
Note: See TracBrowser for help on using the repository browser.