File: makeManDirs

package info (click to toggle)
inventor 2.1.5-10-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 36,312 kB
  • sloc: ansic: 33,864; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 81; csh: 35; sed: 11
file content (28 lines) | stat: -rwxr-xr-x 594 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /usr/bin/tcsh -f

#
# Prepares command line info to create a man page for the given class name
#
# Usage: makeManDirs className
#

set nonomatch
set toolDir = ../../ivman
set className = $1
set treeFile = $toolDir/manTree

# Get the list of derived classes
set classes = `grep "^$className " $treeFile`

# For each class, find the directory containing the man page. Build
# a final list from the {className,dir} pairs.
set list = ()
foreach class ($classes)
    if (-e */$class.ivm) then
	set path = `echo */$class.ivm`
	set list = ($list $path)
    endif
end

# Print the result
echo $list