CSc265 -- Exercise 5
DUE: midnight, Tuesday 3 December 1996
treeBrowse
to provide a better browser for Unix directory
trees than the standard one:
ls, cd, and vi.
Your Perl prgram will recursively traverse a directory tree
and produce a new tree suitable for browsing with Netscape.
d/ d.treeBrowse d.html kwic/ kwic.treeBrowse kwic.htmlBegin by making a copy of the
Ex5/ directory.
Study d.html and all the files in d.treeBrowse/
and d/.
Then open d.html using Netscape (File|Open File...).
Select every HTML link.
Continue studying these files until you thoroughly understand
the relationship between the source tree (d/),
and the generated tree (d.treeBrowse/) and its
index (d.html).
Then use Netscape to open kwic.html
and open a sample of the HTML links.
treeBrowse, a Perl program
that generates, for example, d.html and d.treeBrowse/
from d/.
Invoking
treeBrowse xmust generate
x.htmlx.
There must be one line in x.html for each file F in x.
Indenting must be used to show the directory structure.
If F is not a directory, then F's line must be an HTML link to
a file in x.treeBrowse.
x.treeBrowse/x/ with one exception.
For each file F ending in .c or .h:
is renamed F.html.
Ex5/d/ and Ex5/kwic/.
Your version of treeBrowse should produce exactly the same results
as those shown in Ex5/.
Verify that this is so with
diff yourEx5/d.html ~csc465/Exercises/Ex5/d.html diff -r yourEx5/d.treeBrowse ~csc465/Exercises/Ex5/d.treeBrowse diff yourEx5/kwic.html ~csc465/Exercises/Ex5/kwic.html diff -r yourEx5/kwic.treeBrowse ~csc465/Exercises/Ex5/kwic.treeBrowseThere should be no differences.
% mail -s 'Exercise 5 submission' csc265@gulf < treeBrowse
d/ and kwic/ directories?
As always, you may submit the assignment only once because only the first submission will be graded.