Skip to content

Commit

Permalink
Include rendered man page in source tarballs
Browse files Browse the repository at this point in the history
This gives users who build from the source tarball, but
do not want to install pandoc, access to the man pages.

Requested at
#355
  • Loading branch information
rfjakob committed Mar 2, 2019
1 parent 60cae50 commit 5c65b60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/MANPAGE-render.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function render {
IN=$1
OUT=$2
echo "Rendering $IN to $OUT"
echo ".\\\" This is a man page. View it using 'man ./$OUT'" > $OUT
echo ".\\\" This man page was generated from $IN. View it using 'man ./$OUT'" > $OUT
echo ".\\\"" >> $OUT
pandoc "$IN" -s -t man >> $OUT
}
Expand Down
8 changes: 6 additions & 2 deletions package-source.bash
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ cd "$(dirname "$0")"
GITVERSION=$(git describe --tags --dirty)
echo $GITVERSION > VERSION

# Render the manpages and include them in the tarball. This
# avoids a build-dependency to pandoc.
./Documentation/MANPAGE-render.bash

# gocryptfs source tarball
PREFIX_SRC_ONLY=gocryptfs_${GITVERSION}_src
git_archive_extra $PREFIX_SRC_ONLY VERSION
git_archive_extra $PREFIX_SRC_ONLY VERSION Documentation/*.1

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

rm VERSION

Expand Down

0 comments on commit 5c65b60

Please sign in to comment.