|
Last change
on this file since 1216 was 1208, checked in by garnier, 16 years ago |
|
CVS update
|
-
Property svn:executable
set to
*
|
|
File size:
793 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/perl
|
|---|
| 2 | #
|
|---|
| 3 | # Merge html files into one so that MSWord can read
|
|---|
| 4 | # it and generate a ps file.
|
|---|
| 5 | #
|
|---|
| 6 |
|
|---|
| 7 | $file = $ARGV[0]; # Name the file
|
|---|
| 8 |
|
|---|
| 9 | open(INFO, "<$file" ) ; # Open the file
|
|---|
| 10 | @lines = <INFO> ; # Read it into an array
|
|---|
| 11 | close(INFO) ; # Close the file
|
|---|
| 12 |
|
|---|
| 13 | foreach $line (@lines) # assign @lines to $line, one at a time
|
|---|
| 14 | { # braces {} are required, bracket code
|
|---|
| 15 |
|
|---|
| 16 | $line =~ s#"../../../../resources/#"../../../resources/#;
|
|---|
| 17 |
|
|---|
| 18 | if ($file =~ "index.html")
|
|---|
| 19 | {
|
|---|
| 20 | if ($line =~ /About the authors/)
|
|---|
| 21 | {
|
|---|
| 22 | $line = '<I>About the authors</I></A>
|
|---|
| 23 | <BR><BR><BR><BR><BR><BR><BR><BR>
|
|---|
| 24 | ';
|
|---|
| 25 |
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | print "$line" ; # print formatted lines to screen
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | #
|
|---|
| 33 | # DONE
|
|---|
| 34 | #
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.