( ESNUG 279 Item 2 ) ------------------------------------------------ [2/5/98]
From: rramsay1@ford.com (Rodney Ramsay)
Subject: Making Your Own Home Grown Man Pages For PrimeTime
John,
I used to be mad that Synopsys On-Line Documents didn't have man pages for
the commands in PrimeTime. Now I feel a lot better. To make this happen,
I used the following trick:
pt_shell> help * > help.txt
Then use this perl program to awk out some man commands.
#!/usr/local/bin/perl
while(<>) {
if(m/^\s*(\S+)\s+/) {
print "man $1 > $1.txt\n";
}
}
Now, include this output in pt_shell to create all the text versions of
the man files. Put the files in some directory that everybody can access
with their web browser. When you read the directory as a file you see
hot spots for each command and tah-dah, some useful documentation.
Of course you can always use
man -M $SYNOPSYS/doc/pt/man <some command>
in Unix but not with the same flair.
- Rod Ramsay
Ford Microelectronics Colorado Springs, CO
|
|