From f7a4ecf2add403c8b078658406fcfed5486fdd2c Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Fri, 15 May 2015 02:59:35 -0300 Subject: added initial man pages --- .gitignore | 4 +++ Makefile.am | 47 ++++++++++++++++++++++++- configure.ac | 20 +++++++++++ man/blogc-source.7.ronn | 18 ++++++++++ man/blogc-template.7.ronn | 18 ++++++++++ man/blogc.1.ronn | 88 +++++++++++++++++++++++++++++++++++++++++++++++ man/index.txt | 8 +++++ 7 files changed, 202 insertions(+), 1 deletion(-) create mode 100644 man/blogc-source.7.ronn create mode 100644 man/blogc-template.7.ronn create mode 100644 man/blogc.1.ronn create mode 100644 man/index.txt diff --git a/.gitignore b/.gitignore index c08b333..e0013d8 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,10 @@ Makefile.in /m4/*.m4 !/m4/pkg.m4 +# man pages +/man/blogc*.[17] +/man/blogc*.html + # blogc /blogc diff --git a/Makefile.am b/Makefile.am index 9302a7e..9d56ca3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,9 @@ ACLOCAL_AMFLAGS = -I m4 AM_DISTCHECK_CONFIGURE_FLAGS = \ --enable-tests \ - --disable-valgrind + --disable-ronn \ + --disable-valgrind \ + $(NULL) ## File listings @@ -18,6 +20,9 @@ EXTRA_DIST = \ CLEANFILES = \ $(NULL) +MAINTAINERCLEANFILES = \ + $(NULL) + noinst_HEADERS = \ src/content-parser.h \ src/file.h \ @@ -81,6 +86,46 @@ blogc_LDADD = \ $(NULL) +## Build rules: man pages + +if USE_RONN + +EXTRA_DIST += \ + man/blogc.1.ronn \ + man/blogc-source.7.ronn \ + man/blogc-template.7.ronn \ + man/index.txt \ + $(NULL) + +dist_man_MANS = \ + man/blogc.1 \ + man/blogc-source.7 \ + man/blogc-template.7 \ + $(NULL) + +MAINTAINERCLEANFILES += \ + $(dist_man_MANS) \ + $(NULL) + +man/blogc.1: man/blogc.1.ronn + $(AM_V_GEN)$(RONN) \ + --roff \ + --pipe \ + --organization "Rafael G. Martins" \ + --manual "$(PACKAGE_NAME) Manual" \ + $< > $@ + +man/blogc%.7: man/blogc%.7.ronn + $(AM_V_GEN)$(RONN) \ + --roff \ + --pipe \ + --organization "Rafael G. Martins" \ + --manual "$(PACKAGE_NAME) Manual" \ + $< > $@ + +endif + + ## Build rules: tests if USE_CMOCKA diff --git a/configure.ac b/configure.ac index a2cace4..d79fc47 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,25 @@ AS_IF([test "x$ac_cv_prog_cc_c99" = "xno"], [ AC_MSG_ERROR([no C99 compiler found, blogc requires a C99 compiler.]) ]) +AC_ARG_ENABLE([ronn], AS_HELP_STRING([--disable-ronn], + [ignore presence of ronn and disable man pages generation])) +AS_IF([test "x$enable_ronn" != "xno"], [ + AC_PATH_PROG([ronn], [ronn]) + AS_IF([test "x$ac_cv_path_ronn" = "x"], [ + have_ronn=no + ], [ + have_ronn=yes + ]) +]) +AS_IF([test "x$have_ronn" = "xyes"], , [ + AS_IF([test "x$enable_ronn" = "xyes"], [ + AC_MSG_ERROR([ronn requested but not found]) + ]) +]) +AM_CONDITIONAL([USE_RONN], [test "x$have_ronn" = "xyes"]) +RONN="$ac_cv_path_ronn" +AC_SUBST(RONN) + AC_ARG_ENABLE([valgrind], AS_HELP_STRING([--disable-valgrind], [ignore presence of valgrind])) AS_IF([test "x$enable_valgrind" != "xno"], [ @@ -93,5 +112,6 @@ AS_ECHO(" tests: ${TESTS} + ronn: ${RONN} valgrind: ${VALGRIND} ") diff --git a/man/blogc-source.7.ronn b/man/blogc-source.7.ronn new file mode 100644 index 0000000..71be994 --- /dev/null +++ b/man/blogc-source.7.ronn @@ -0,0 +1,18 @@ +blogc-source(7) -- blogc's source file format +============================================= + +## SYNOPSIS + +TODO + +## DESCRIPTION + +TODO + +## AUTHOR + +Rafael G. Martins <> + +## SEE ALSO + +blogc(1), strptime(3) diff --git a/man/blogc-template.7.ronn b/man/blogc-template.7.ronn new file mode 100644 index 0000000..5883d09 --- /dev/null +++ b/man/blogc-template.7.ronn @@ -0,0 +1,18 @@ +blogc-template(7) -- blogc's template format +============================================ + +## SYNOPSIS + +TODO + +## DESCRIPTION + +TODO + +## AUTHOR + +Rafael G. Martins <> + +## SEE ALSO + +blogc(1) diff --git a/man/blogc.1.ronn b/man/blogc.1.ronn new file mode 100644 index 0000000..ddf33ca --- /dev/null +++ b/man/blogc.1.ronn @@ -0,0 +1,88 @@ +blogc(1) -- a blog compiler +=========================== + +## SYNOPSIS + +`blogc` [`-D` = ...] `-t`