(This is a repost, the first hasn't showed up after 48 hours. Maybe
this is a subscribers-only list?)

Hi! I have this patch, that adds a "html" nmake build target, that does
what you want. Look at the details of it, if you want to use it as a
guide how to do it outside the build process.


diff -urN openssl-0.9.7.orig/util/mk1mf.pl openssl-0.9.7/util/mk1mf.pl
--- openssl-0.9.7.orig/util/mk1mf.pl    Tue Dec  3 15:21:30 2002
+++ openssl-0.9.7/util/mk1mf.pl Fri Jan  3 09:43:48 2003
@@ -627,6 +627,25 @@

 
$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
+
+html:  \$(PODS:.pod=.html)
+EOF
+    $defs.="PODS=";
+    foreach (glob("doc\\apps\\*.pod")) { $defs.="$_ "; }
+    foreach (glob("doc\\crypto\\*.pod")) { $defs.="$_ "; }
+    foreach (glob("doc\\ssl\\*.pod")) { $defs.="$_ "; }
+    $defs.="\n\n";
+}
+
 print $defs;

 if ($platform eq "linux-elf") {



-- 
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
Yahoo! Messenger profile name: altberg
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to