]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
create the symlinks for the manual pages
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 26 Apr 2005 11:52:31 +0000 (11:52 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 26 Apr 2005 11:52:31 +0000 (11:52 +0000)
Add functions to functions_manpages

doc/doxyparse.pl
doc/function_manpages

index 7d74d75977490275afedef172445ce05e22dd20f..7070cb20eb371a065563c68193d4d54be0120950 100755 (executable)
@@ -132,32 +132,43 @@ foreach (keys %manpages) {
 
        $filename = @$a[0];
        $filename = "man/man$MAN_SECTION/$filename.$MAN_SECTION";
-       print $filename," ";
+
+       my $symlink_file = @$a[0] . "." . $MAN_SECTION;
+
+       print $filename,"\n";
        open (MAN, ">$filename") or die "Can not open $filename";
 
        print MAN  $MAN_HEADER;
-
        print MAN  ".SH NAME\n";
        print MAN  join ", ", @$a;
        print MAN  "\n\n";
-       
        print MAN  ".SH SYNOPSIS\n";
        print MAN  "#include <ldns/ldns.h>\n";
        print MAN  ".PP\n";
-       foreach $function (@$a) {
-               print MAN  $return{$function}, " ", $function;
-               print MAN  "(", $api{$function},");\n";
+
+       foreach (@$a) {
+               print MAN  $return{$_}, " ", $_;
+               print MAN  "(", $api{$_},");\n";
                print MAN  ".PP\n";
        }
        print MAN  "\n.SH DESCRIPTION\n";
-       foreach $function (@$a) {
+
+       foreach (@$a) {
                print MAN  ".HP\n";
-               print MAN "\\fI", $function, "\\fR", ":"; 
-               print MAN  $description{$function};
+               print MAN "\\fI", $_, "\\fR", ":"; 
+               print MAN  $description{$_};
                print MAN  "\n.PP\n";
        }
-       print MAN  $MAN_FOOTER;
+
+       print MAN $MAN_FOOTER;
+
+       # create symlinks
+       chdir("man/man$MAN_SECTION");
+       foreach (@$a) {
+               my $new_file = $_ . "." . $MAN_SECTION;
+               print "\t", $new_file, " -> ", $symlink_file, "\n";
+               symlink $symlink_file, $new_file;
+       }
+       chdir("../.."); # and back
        close(MAN);
-       # link the other names to this filesname
 }
-print "\n";
index 578532b8e2c03f4e0608177c02757f4f76dccc31..f3c97f3ab7718d94ca5feb552b8963db7545c3e5 100644 (file)
@@ -6,4 +6,19 @@
 ldns_rr2wire, ldns_pkt2wire, ldns_rdf2wire
 # wirefunctions
 ldns_wire2rr, ldns_wire2pkt, ldns_wire2rdf, ldns_wire2dname
-# the rest
+# dname.h
+ldns_dname_cat, ldns_dname_left_chop, ldns_dname_label_count, ldns_dname_new_frm_str,ldns_dname_new_frm_data, ldns_dname2canonical
+# dnssec.h
+ldns_calc_keytag
+#      verify
+ldns_verify, ldns_verify_rrsig, ldns_verify_rrsig_dsa, ldns_verify_rrsig_rsasha1, ldns_verify_rrsig_rsamd5
+#      key conv
+ldns_key_buf2dsa, ldns_key_buf2rsa, ldns_key_rr2ds
+# TSIG
+ldns_pkt_tsig_verify, ldns_pkt_tsig_sign
+# DNSSEC sign function; not yet!
+# errr.h
+ldns_get_errorstr_by_id
+# higher.h
+ldns_get_rr_list_addr_by_name, ldns_get_rr_list_name_by_addr
+ldns_get_rr_list_hosts_frm_fp, ldns_get_rr_list_hosts_frm_file