From: Stefan Unterholzner (Stefan.Unterholzner++at++kmweg.de)
Date: 04/04/2001 01:23:06
Ive Akkermans wrote:
>
> hi all,
>
> I run Linux Performer 2.4 on Debian 2.4.1 kernel, but can't read the
> manpages ! they're all installed in /usr/man/man3, but when i run mandb
> they don't get processed. It's because they are in the .3pf.C++ format
> I think. Anybody have a solution for this major inconvenience ? Thanks
> a lot in advance !
>
> ive.
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
Hi
I had the same problem with my SuSE 7.0. What I did is to rename the
man-pages so that they are recognized by 'man'. For that i wrote a
small perl-script:
#!/usr/bin/perl
foreach (<*.3pf.C++>) {
$old_name = $_;
$new_name = $_;
$new_name =~ s/(.*)\.3pf\.C\+\+/$1\.C\+\+.3pf/;
rename( $old_name, $new_name ) || print "CAN'T RENAME FILE [$old_name] to [$new_name]!\n";
# Make C++ man-page default ;-)
$lnk_name = $_;
$lnk_name =~ s/(.*)\.3pf\.C\+\+/$1\.3pf/;
symlink( $new_name, $lnk_name ) || print "CAN'T CREATE SYMLINK [$lnk_name] to [$new_name]!\n";
}
foreach (<*.3pf.c>) {
$old_name = $_;
$new_name = $_;
$new_name =~ s/(.*)\.3pf\.c/$1\.c\.3pf/;
rename( $old_name, $new_name ) || print "CAN'T RENAME FILE [$old_name] to [$new_name]!\n";
}
It just renames all *.3pf.C++ into *.C++.3pf and creates a symlink *.3pf
to *.C.3df to make the C++-manpage the default.
According all *.3pf.c are renamed to *.c.3pf
So calling e.g. 'man pfMatrix' 'man pfMatrix.C++' 'man pfMatrix.c' work
fine for me.
Good luck!
Stefan
_________________________________________________________________________
Dipl. Ing. Stefan Unterholzner Krauss-Maffei Wegmann GmbH & Co. KG
Instructor Tools Dept. Training and Simulation, AS 21
Telephone: ++49 (89) 8140 - 4609 Krauss-Maffei Strasse 11
Telefax: ++49 (89) 8140 - 4912 D-80997 Munich, Germany
mailto:Stefan.Unterholzner++at++kmweg.de http://www.kmwsim.de
_________________________________________________________________________
This archive was generated by hypermail 2b29 : Wed Apr 04 2001 - 01:22:45 PDT