| 1 |
#! /bin/tcsh -f |
| 2 |
|
| 3 |
# |
| 4 |
# Prepares command line info to create a man page for the given class name |
| 5 |
# |
| 6 |
# Usage: makeManDirs className |
| 7 |
# |
| 8 |
|
| 9 |
set nonomatch |
| 10 |
set toolDir = ../../ivman |
| 11 |
set className = $1 |
| 12 |
set treeFile = $toolDir/manTree |
| 13 |
|
| 14 |
# Get the list of derived classes |
| 15 |
set classes = `grep "^$className " $treeFile` |
| 16 |
|
| 17 |
# For each class, find the directory containing the man page. Build |
| 18 |
# a final list from the {className,dir} pairs. |
| 19 |
set list = () |
| 20 |
foreach class ($classes) |
| 21 |
if (-e */$class.ivm) then |
| 22 |
set path = `echo */$class.ivm` |
| 23 |
set list = ($list $path) |
| 24 |
endif |
| 25 |
end |
| 26 |
|
| 27 |
# Print the result |
| 28 |
echo $list |