Skip to content

Commit 61940a9

Browse files
committed
Include rendered man page in source tarballs
This gives users who build from the source tarball, but do not want to install pandoc, access to the man pages. Apperently the gocryptfs homebrew package ships without the man pages at the moment to avoid pandoc. Requested at #355
1 parent 60cae50 commit 61940a9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Documentation/MANPAGE-render.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function render {
88
IN=$1
99
OUT=$2
1010
echo "Rendering $IN to $OUT"
11-
echo ".\\\" This is a man page. View it using 'man ./$OUT'" > $OUT
11+
echo ".\\\" This man page was generated from $IN. View it using 'man ./$OUT'" > $OUT
1212
echo ".\\\"" >> $OUT
1313
pandoc "$IN" -s -t man >> $OUT
1414
}

package-source.bash

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ cd "$(dirname "$0")"
1818
GITVERSION=$(git describe --tags --dirty)
1919
echo $GITVERSION > VERSION
2020

21+
# Render the manpages and include them in the tarball. This
22+
# avoids a build-dependency to pandoc.
23+
./Documentation/MANPAGE-render.bash
24+
2125
# gocryptfs source tarball
2226
PREFIX_SRC_ONLY=gocryptfs_${GITVERSION}_src
23-
git_archive_extra $PREFIX_SRC_ONLY VERSION
27+
git_archive_extra $PREFIX_SRC_ONLY VERSION Documentation/*.1
2428

2529
# gocryptfs source + dependencies tarball
2630
dep ensure
2731
PREFIX_SRC_DEPS=gocryptfs_${GITVERSION}_src-deps
28-
git_archive_extra $PREFIX_SRC_DEPS VERSION vendor
32+
git_archive_extra $PREFIX_SRC_DEPS VERSION Documentation/*.1 vendor
2933

3034
rm VERSION
3135

0 commit comments

Comments
 (0)