From ff97740daca3f991a0eb17a95d15abf2bffdec3d Mon Sep 17 00:00:00 2001 From: Fufu Fang Date: Tue, 31 Aug 2021 15:39:13 +0100 Subject: [PATCH] updated Makefile for man page generation, updated man page --- .gitignore | 2 +- Makefile | 6 +++--- doc/man/httpdirfs.1 | 16 ++++++++++------ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 0604f1e..07caae5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ sonicfs .depend # Documentation -doc +doc/html # Editor related *.kate-swp diff --git a/Makefile b/Makefile index 09deeb9..7850549 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ endif prefix ?= /usr/local -all: httpdirfs +all: man %.o: src/%.c $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c -o $@ $< @@ -55,7 +55,7 @@ ifeq ($(OS),Darwin) $(DESTDIR)$(prefix)/share/man/man1/httpdirfs.1 endif -man: all +man: httpdirfs help2man --no-discard-stderr ./httpdirfs > doc/man/httpdirfs.1 doc: @@ -64,10 +64,10 @@ doc: clean: -rm -f *.o -rm -f httpdirfs + -rm -rf doc/man/httpdirfs.1 distclean: clean -rm -rf doc/html - -rm -rf doc/man/httpdirfs.1 uninstall: -rm -f $(DESTDIR)$(prefix)/bin/httpdirfs diff --git a/doc/man/httpdirfs.1 b/doc/man/httpdirfs.1 index 0fe0c17..f196a2a 100644 --- a/doc/man/httpdirfs.1 +++ b/doc/man/httpdirfs.1 @@ -1,8 +1,10 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. -.TH HTTPDIRFS "1" "August 2021" "HTTPDirFS version 1.2.3" "User Commands" +.TH PRINT_VERSION: "1" "August 2021" "print_version: HTTPDirFS version 1.2.3" "User Commands" .SH NAME -HTTPDirFS \- manual page for HTTPDirFS version 1.2.3 +print_version: \- manual page for print_version: HTTPDirFS version 1.2.3 .SH DESCRIPTION +print_version: HTTPDirFS version 1.2.3 +print_version: libcurl SSL engine: OpenSSL/1.1.1k usage: ./httpdirfs [options] URL mountpoint .SS "general options:" .TP @@ -247,19 +249,21 @@ prepend this directory to all paths (mandatory) \fB\-o\fR [no]rellinks transform absolute symlinks to relative .PP -libcurl SSL engine: OpenSSL/1.1.1k +print_version: libcurl SSL engine: OpenSSL/1.1.1k +print_version: HTTPDirFS version 1.2.3 +print_version: libcurl SSL engine: OpenSSL/1.1.1k FUSE library version: 2.9.9 fusermount3 version: 3.10.3 using FUSE kernel interface version 7.19 .SH "SEE ALSO" The full documentation for -.B HTTPDirFS +.B print_version: is maintained as a Texinfo manual. If the .B info and -.B HTTPDirFS +.B print_version: programs are properly installed at your site, the command .IP -.B info HTTPDirFS +.B info print_version: .PP should give you access to the complete manual.