1 |
#!/bin/csh |
2 |
|
3 |
pushd /jaz/t51/share |
4 |
# scan all directories that aren't CVS |
5 |
foreach CDIR (`find . ! -name CVS -type d -print`) |
6 |
|
7 |
echo ------------------------ Examining $CDIR --------------------------------- |
8 |
|
9 |
# process all files! |
10 |
#foreach CFILE (`ls $CDIR/*.[chC]` `ls $CDIR/*.pc` `ls $CDIR/*.cpp` `ls $CDIR/*.ascii`) |
11 |
foreach CFILE (`ls $CDIR/*.*`) |
12 |
#foreach CFILE (`ls $CDIR/*.[c,h,C]` `ls $CDIR/*.pc`) |
13 |
|
14 |
if (-e /tis/t52/share/$CFILE) then |
15 |
'rm' -f currdiff.txt |
16 |
|
17 |
diff -wbt /jaz/t51/share/$CFILE /tis/t52/share/$CFILE >currdiff.txt |
18 |
|
19 |
# only display a diff if a real difference exists |
20 |
if (! -z currdiff.txt) then |
21 |
|
22 |
echo =========================================================================== |
23 |
echo Differences /jaz/t51/share/$CFILE /tis/t52/share/$CFILE |
24 |
echo =========================================================================== |
25 |
cat currdiff.txt |
26 |
|
27 |
endif |
28 |
|
29 |
else |
30 |
echo $CFILE Does not exist |
31 |
|
32 |
endif |
33 |
|
34 |
end |
35 |
|
36 |
end |
37 |
popd |
38 |
|
39 |
|