Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-blobcode
Commits
b86200c8
Commit
b86200c8
authored
May 26, 2011
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add man page support to the skeleton
parent
14aabf7d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
1 deletion
+76
-1
Makefile.am
Makefile.am
+1
-1
configure.ac
configure.ac
+8
-0
Makefile.am
man/Makefile.am
+14
-0
vmod_example.rst
man/vmod_example.rst
+53
-0
No files found.
Makefile.am
View file @
b86200c8
ACLOCAL_AMFLAGS
=
-I
m4
SUBDIRS
=
src
SUBDIRS
=
src
man
configure.ac
View file @
b86200c8
...
...
@@ -22,6 +22,13 @@ AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
# Check for rst utilities
AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], "no")
if test "x$RST2MAN" = "xno"; then
AC_MSG_WARN([rst2man not found - not building man pages])
fi
AM_CONDITIONAL(HAVE_RST2MAN, [test "x$RST2MAN" != "xno"])
# Check for pkg-config
PKG_PROG_PKG_CONFIG
...
...
@@ -62,5 +69,6 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
src/tests/Makefile
man/Makefile
])
AC_OUTPUT
man/Makefile.am
0 → 100644
View file @
b86200c8
#
dist_man_MANS
=
vmod_example.3
MAINTAINERCLEANFILES
=
$(dist_man_MANS)
vmod_example.3
:
vmod_example.rst
if
HAVE_RST2MAN
${RST2MAN}
vmod_example.rst
$@
else
@echo
"========================================"
@echo
"You need rst2man installed to make dist"
@echo
"========================================"
@false
endif
man/vmod_example.rst
0 → 100644
View file @
b86200c8
============
vmod_example
============
----------------------
Varnish Example Module
----------------------
:Author: Martin Blix Grydeland
:Date: 2011-05-26
:Version: 1.0
:Manual section: 3
SYNOPSIS
========
import example;
DESCRIPTION
===========
Example Varnish vmod demonstrating how to write an out-of-tree Varnish vmod.
Implements the traditional Hello World as a vmod.
FUNCTIONS
=========
hello
-----
Prototype
hello(STRING S)
Return value
STRING
Description
Returns "Hello, " prepended to S
Example
set resp.http.hello = example.hello("World");
HISTORY
=======
This manual page was released as part of the libvmod-example package,
demonstrating how to create an out-of-tree Varnish vmod.
COPYRIGHT
=========
This document is licensed under the same license as the
libvmod-example project. See LICENSE for details.
* Copyright (c) 2011 Varnish Software
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment