From 28b264ac22b5bb4f39920e6be74d3d59b92c9eac Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 Dec 2013 22:48:38 +0000 Subject: ipif: Provide head comment of service.c as a txt docs. --- ipif/Makefile | 2 ++ ipif/ipif | 2 ++ 2 files changed, 4 insertions(+) (limited to 'ipif') diff --git a/ipif/Makefile b/ipif/Makefile index 78b4972..fe6ec6e 100644 --- a/ipif/Makefile +++ b/ipif/Makefile @@ -38,6 +38,7 @@ PROGRAMS$(depr)+= udptunnel PROGRAMS+= $(PROGRAM_TARGETS) DIRS+= $(libuserv) $(etcuserv) $(services) +DIRS+= $(docdir)/userv-ipif DIRS$(depr)+= $(bindir) $(varlibvpn) $(shareuserv) SHAREFILES$(depr)+= udptunnel-vpn-config.m4 udptunnel-vpn-defaults @@ -59,6 +60,7 @@ install: all set -e; for f in $(SHAREFILES); do cp $$f $(shareuserv)/.; done install-docs: + sed -n '1,/^$$/p' service.c >$(docdir)/userv-ipif/service.c.txt install-examples: set -e; if [ "x$depr" = x ]; then \ diff --git a/ipif/ipif b/ipif/ipif index f8c5838..c6784c7 100644 --- a/ipif/ipif +++ b/ipif/ipif @@ -1,3 +1,5 @@ +# See /usr/share/doc/userv-ipif/service.c.txt +# if ( grep calling-user-shell /etc/shells & glob service-user root ) -- cgit v1.2.3