Hi all!
This patch adds a `html' target to the Windows build, that uses pod2html
to make html documentation; e.g.
> nmake -f ms\nt.mak html
It has only been tested with MSVC6 and "native" perl (i.e. not Cygwin's
version).
diff -burN openssl-0.9.7a.orig/ms/ms-point.pl openssl-0.9.7a/ms/ms-point.pl
--- openssl-0.9.7a.orig/ms/ms-point.pl 1970-01-01 01:00:00.000000000 +0100
+++ openssl-0.9.7a/ms/ms-point.pl 2003-02-27 15:33:10.000000000 +0100
@@ -0,0 +1,15 @@
+# A Microsoft Windows platform version of util/point.sh, adapted to work around
+# the native command shell's limitations.
+
+($#ARGV == 1) || die "usage: ms-point.pl <directory> <basename>\n";
+$dir = $ARGV[0];
+$dir =~ s/\\/\//g; # in case this is used with non-native perl
+$base = $ARGV[1];
+
+while (<STDIN>) {
+ /(\S+)/;
+ if ($1 and $1 ne $base) {
+ link("$dir/$base.html", "$dir/$1.html");
+ printf("$1.html => $base.html\n");
+ }
+}
diff -burN openssl-0.9.7a.orig/util/mk1mf.pl openssl-0.9.7a/util/mk1mf.pl
--- openssl-0.9.7a.orig/util/mk1mf.pl 2003-02-14 06:20:28.000000000 +0100
+++ openssl-0.9.7a/util/mk1mf.pl 2003-02-27 15:30:53.000000000 +0100
@@ -631,6 +631,26 @@
$rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS)
\$(EX_LIBS)");
+# add rules and targets for .pod -> .html file generation
+if (($platform eq "VC-WIN32") || ($platform eq "VC-NT")) {
+ $rules.=<<"EOF";
+.SUFFIXES: .pod
+
+.pod.html:
+# we must convert e.g. "SSL_CTX_new(3)" -> "SSL_CTX_new" in the pod file
+ [EMAIL PROTECTED] -pi~ -e "s/\\([0123456789]\\)//g" \$<
+ pod2html --htmlroot=.. --podroot=doc --podpath=apps:crypto:ssl --header
--infile=\$< --outfile=\$*.html
+ [EMAIL PROTECTED] util/extract-names.pl < \$< | perl ms/ms-point.pl \$(<D)
\$(<B)
+
+html: \$(PODS:.pod=.html)
+EOF
+ $defs.="PODS=";
+ foreach (glob("doc/apps/*.pod")) { s/\//\\/g; $defs.="$_ "; }
+ foreach (glob("doc/crypto/*.pod")) { s/\//\\/g; $defs.="$_ "; }
+ foreach (glob("doc/ssl/*.pod")) { s/\//\\/g; $defs.="$_ "; }
+ $defs.="\n\n";
+}
+
print $defs;
if ($platform eq "linux-elf") {
Cheers,
- Peter
--
Peter 'Luna' Runestig (fd. Altberg), Sweden <[EMAIL PROTECTED]>
PGP Key ID: 0xD07BBE13
Fingerprint: 7B5C 1F48 2997 C061 DE4B 42EA CB99 A35C D07B BE13
AOL Instant Messenger Screen name: PRunestig
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]