From b13005f4bf9ed08072874318e2b377851a70263a Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 13 Oct 2008 12:20:30 +0200 Subject: [PATCH] pmccabe2html: Add css and css_url parameters. --- ChangeLog | 4 ++++ build-aux/pmccabe2html | 20 +++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 856ca31a6..3aa6dabbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-13 Simon Josefsson + + * build-aux/pmccabe2html: Add css and css_url parameters. + 2008-10-12 Bruno Haible * tests/test-sameacls.c (main) [AIX]: Clear type argument before diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html index 03e697b3d..fc472582e 100755 --- a/build-aux/pmccabe2html +++ b/build-aux/pmccabe2html @@ -21,15 +21,16 @@ # Typical Invocation is from a Makefile.am: # -# libidn-cyclo.html: +# cyclo-libidn.html: # $(PMCCABE) ${top_srcdir}/lib/*.[ch] \ # | sort -nr \ # | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \ # -v lang=html -v name="$(PACKAGE_NAME)" \ # -v vcurl="http://git.savannah.gnu.org/gitweb/?p=libidn.git;a=blob;f=%FILENAME%;hb=HEAD" \ # -v url="http://www.gnu.org/software/libidn/" \ +# -v css=../../build-aux/pmccabe.css \ # > tmp -# mv tmp libidn-cyclo.html +# mv tmp $@ # # The variables available are: # lang output language, either 'html' or 'wiki' @@ -38,6 +39,8 @@ # vcurl URL to version controlled source code browser, # a %FILENAME% in the string is replaced with the relative # source filename +# css CSS stylesheet filename, included verbatim in HTML output +# css_url link to CSS stylesheet, an URL # Prologue & configuration BEGIN { @@ -62,7 +65,6 @@ BEGIN { } html_epilog = "
\ Copyright (c) 2007, 2008 Free Software Foundation Inc." - css_url = "pmccabe.css" html_doctype = "" html_comment = "" @@ -199,6 +201,18 @@ function html_header () { print "" } + if (css != "") + { + print "" + close(css) + } print "" print "" -- 2.11.0