Skip to content

Commit f31fda0

Browse files
author
Jens Getreu
committed
update man-page installation instructions
1 parent 0b227b9 commit f31fda0

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ target
33
*.sw?
44
*.html
55
*.1
6+
*.1.gz

doc/src/README.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ Binaries
8080
Download `stringsext binaries`_ and verify hashes_.
8181

8282
Manual page
83-
`stringsext.1`_
83+
`stringsext.1.gz`_
8484

8585
.. _`stringsext binaries`: https://getreu.net/public/downloads/doc/stringsext/./target/
8686
.. _hashes: https://getreu.net/public/sha256sum.txt
87-
.. _`stringsext.1`: https://getreu.net/public/downloads/doc/stringsext/./man/stringsext.1
87+
.. _`stringsext.1.gz`: https://getreu.net/public/downloads/doc/stringsext/./man/man1/stringsext.1.gz
8888

8989

9090

@@ -104,14 +104,20 @@ Building and installing
104104
Enter the *Stringsext* source directory where the file ``Cargo.toml`` resides. Then execute::
105105

106106
cargo build --release
107-
107+
./make-doc
108108

109109
#. Install
110110

111-
a. Linux ::
111+
a. Linux:
112+
113+
.. code:: bash
112114
115+
# install binary
113116
sudo cp target/release/stringsext /usr/local/bin/
114-
sudo cp man/stringsext.1 /usr/local/man/man1/
117+
118+
# install man-page
119+
sudo cp man/stringsext.1.gz /usr/local/man/man1/
120+
sudo dpkg-reconfigure man-db # e.g. Debian, Ubuntu
115121
116122
b. Windows
117123

make-doc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/sh
22

33
mkdir -p ./doc/build
4-
4+
mkdir --parents ./man/man1
55

66
# Man page
7-
rst2man.py ./doc/src/stringsext--man.rst > ./man/stringsext.1
7+
rst2man.py ./doc/src/stringsext--man.rst > ./man/man1/stringsext.1
88
rst2html.py --stylesheet=./doc/src/docutils_basic.css ./doc/src/stringsext--man.rst ./doc/build/stringsext--man.html
9-
9+
# You can also use pandoc
10+
#pandoc -s doc/src/stringsext--man.rst -t man -o man/man1/stringsext.1
11+
gzip man/man1/stringsext.1
1012

1113
# index page
12-
#rst2html.py --stylesheet=./doc/src/voidspace.css ./doc/src/README.rst ./doc/build/README.html
1314
rst2html.py --stylesheet=./doc/src/docutils_basic.css ./doc/src/README.rst ./doc/build/README.html
1415

1516

0 commit comments

Comments
 (0)