Displaying 3 results from an estimated 3 matches for "parsemacro".
2001 Feb 20
1
man pages screwed
Hi all. I just got openssh 2.5.1p1 and when I installed it, it's man
pages doesn't seem to be formatted right. I'm on Solaris 8.
Here is how it looks:
man ssh
Reformatting page. Please Wait... done
(Secure Shell) is a program for logging into a remote machine and
for executing commands on a remote machine. It is intended to
replace rlogin and rsh, and provide secure encrypted
2002 Mar 13
0
Unable to compile openssh on HP-UX 11
..., Charles Straubel wrote:
:I am trying to build openssh on an HP-UX 11.0 machine. I have installed
:zlib 1.1.3, openssl 0.9.5a and Perl 5.6.0.
:syntax error in file ./mdoc2man.pl at line 39, next 2 tokens "use strict"
:
:syntax error in file ./mdoc2man.pl at line 73, next 2 tokens "ParseMacro("
:
:syntax error in file ./mdoc2man.pl at line 82, next 2 tokens "my ("
:
:syntax error in file ./mdoc2man.pl at line 452, next 2 tokens "my $tmp "
:
:Execution of ./mdoc2man.pl aborted due to compilation errors.
:
:*** Error exit code 255
it seems your perl is wrong. my...
2001 Feb 07
2
Patch for unformatted manpages
...line);
+my ($optlist, $nospace, $enum, $synopsis);
+
+
+$optlist = 0; ### 1 = bullet, 2 = enum, 3 = tag
+$nospace = 0;
+$synopsis = 0;
+
+while ($line = <STDIN>)
+{
+ if ($line !~ /^\./)
+ {
+ print $line;
+ next;
+ }
+
+ $line =~ s/^\.//;
+
+ next
+ if ($line =~ m/\\"/);
+
+ $line = ParseMacro($line);
+ print($line)
+ if (defined $line);
+}
+
+
+
+sub ParseMacro # ($line)
+{
+ my ($line) = @_;
+ my (@words, $retval, $option, $parens, $arg);
+
+ @words = split(/\s+/, $line);
+ $retval = '';
+ $option = 0;
+ $parens = 0;
+ $arg = 0;
+
+# print('@words = ', scalar(@words),...