Skip to content

Commit faf0c65

Browse files
authored
Update printable man page generation. (#197)
* Update printable.man target. * Update ubuntu runner version.
1 parent bbfc8f7 commit faf0c65

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/compile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest]
17+
os: [ubuntu-22.04, ubuntu-latest, macos-latest, windows-latest]
1818
include:
1919
- os: windows-latest
2020
triplet: x64-windows
21-
- os: ubuntu-20.04
21+
- os: ubuntu-22.04
2222
triplet: x64-linux
2323
- os: macos-latest
2424
triplet: x64-osx

Makefile.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ INSTALL = @INSTALL@
4949
INSTALL_DATA = @INSTALL_DATA@
5050
INSTALL_PROGRAM = @INSTALL_PROGRAM@
5151

52+
GROFF_FLAGS = -t -e -mandoc
53+
5254
@SET_MAKE@
5355

5456
# should be no reason to modify lines below this
@@ -93,8 +95,10 @@ install: all install.dirs install.man
9395
$(INSTALL) -m 755 $(PKGNAME) $(DESTDIR)$(bindir)/$(PKGNAME)
9496

9597
printable.man:
96-
groff -Tps -mandoc ./$(PKGNAME).1 >$(PKGNAME).ps
97-
groff -Tascii -mandoc ./$(PKGNAME).1 | tee $(PKGNAME).prn | sed 's/.//g' >$(PKGNAME).txt
98+
groff $(GROFF_FLAGS) -Tps ./$(PKGNAME).1 > $(PKGNAME).ps
99+
groff $(GROFF_FLAGS) -Tpdf ./$(PKGNAME).1 > $(PKGNAME).pdf
100+
groff $(GROFF_FLAGS) -Tascii ./$(PKGNAME).1 | col -bx > $(PKGNAME).txt
101+
groff $(GROFF_FLAGS) -Thtml ./$(PKGNAME).1 > $(PKGNAME).html
98102

99103
install.man: install.dirs
100104
$(INSTALL) -m 644 $(PKGNAME).1 $(DESTDIR)$(mandir)/man1/$(PKGNAME).1

0 commit comments

Comments
 (0)