Browse Source

Manpage update & generation bugfix

The manpage update was broken. Now make docs updates the manpage.
Yann Weber 7 years ago
parent
commit
5876beb864
3 changed files with 21 additions and 8 deletions
  1. 6
    6
      docs/Makefile.am
  2. 6
    1
      docs/man/man1/ttail.1
  3. 9
    1
      src/include/doxygen.h

+ 6
- 6
docs/Makefile.am View File

1
 dist_man_MANS= $(top_srcdir)/docs/man/man1/ttail.1
1
 dist_man_MANS= $(top_srcdir)/docs/man/man1/ttail.1
2
 if HAVE_DOXYGEN
2
 if HAVE_DOXYGEN
3
 CLEANFILES = doxyfile.stamp
3
 CLEANFILES = doxyfile.stamp
4
-directory = $(top_srcdir)/docs/man/man3/
5
-
6
-$(directory)/man_page_1.3: doxyfile.stamp
7
-$(directory)/man_page_2.3: doxyfile.stamp
8
 
4
 
9
 doxyfile.stamp:
5
 doxyfile.stamp:
10
-	$(DOXYGEN) Doxyfile
11
-	echo Timestamp > doxyfile.stamp
6
+	$(DOXYGEN) Doxyfile; \
7
+	echo Timestamp > doxyfile.stamp; \
8
+	make manpage
12
 
9
 
13
 
10
 
14
 html-local: doxyfile.stamp
11
 html-local: doxyfile.stamp
15
 
12
 
16
 $(top_srcdir)/docs/man/man1/ttail.1: doxyfile.stamp
13
 $(top_srcdir)/docs/man/man1/ttail.1: doxyfile.stamp
14
+
15
+manpage:
17
 	-mkdir -p $(top_srcdir)/docs/man/man1;\
16
 	-mkdir -p $(top_srcdir)/docs/man/man1;\
18
 	cp $(top_srcdir)/docs/man/man3/ttail.3 $(top_srcdir)/docs/man/man1/ttail.1;\
17
 	cp $(top_srcdir)/docs/man/man3/ttail.3 $(top_srcdir)/docs/man/man1/ttail.1;\
19
 	sed -i 's/^.TH "ttail" 3/.TH "ttail" 1/' $(top_srcdir)/docs/man/man1/ttail.1
18
 	sed -i 's/^.TH "ttail" 3/.TH "ttail" 1/' $(top_srcdir)/docs/man/man1/ttail.1
20
 
19
 
21
 clean-local:
20
 clean-local:
22
 	-rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man/man3 $(top_srcdir)/docs/doxygen_sqlite3.db
21
 	-rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man/man3 $(top_srcdir)/docs/doxygen_sqlite3.db
22
+
23
 endif
23
 endif

+ 6
- 1
docs/man/man1/ttail.1 View File

165
 Loglines has to be sorted\&.
165
 Loglines has to be sorted\&.
166
 .SH "AUTHOR"
166
 .SH "AUTHOR"
167
 .PP
167
 .PP
168
-Written by Yann Weber yann.weber@members.fsf.org 
168
+Written by Yann Weber <yann.weber@members.fsf.org>
169
+.SH "COPYRIGHT"
170
+.PP
171
+Copyright © 2017 Weber Yann License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\&.
172
+.PP
173
+This is free software: you are free to change and redistribute it\&. There is NO WARRANTY, to the extent permitted by law\&. 

+ 9
- 1
src/include/doxygen.h View File

160
  *Loglines has to be sorted.
160
  *Loglines has to be sorted.
161
  *
161
  *
162
  *@section AUTHOR
162
  *@section AUTHOR
163
- *Written by Yann Weber <yann.weber@members.fsf.org>
163
+ *Written by Yann Weber &lt;yann.weber@members.fsf.org&gt;
164
+ *
165
+ *@section COPYRIGHT
166
+ *Copyright  ©  2017  Weber Yann  License GPLv3+: GNU GPL version 3 or later 
167
+ *&lt;http://gnu.org/licenses/gpl.html>.
168
+ *
169
+ *This is free software: you are free  to  change  and  redistribute  it.
170
+ *There is NO WARRANTY, to the extent permitted by law.
171
+ *
164
  */
172
  */
165
 
173
 
166
 /**@mainpage
174
 /**@mainpage

Loading…
Cancel
Save