Skip to content

Commit 7a9c650

Browse files
committed
Add pandoc-templates.5 to linux/mac release tools
UNTESTED
1 parent b9e8b66 commit 7a9c650

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

linux/make_artifacts.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ make_deb() {
4848

4949
mkdir -p "$DEST/bin"
5050
mkdir -p "$DEST/share/man/man1"
51+
mkdir -p "$DEST/share/man/man5"
5152
mkdir -p "$DEST/share/doc/pandoc"
5253

5354
find "$DIST" -type d -exec chmod 755 {} \;
@@ -56,10 +57,10 @@ make_deb() {
5657
ln -s pandoc pandoc-server
5758
ln -s pandoc pandoc-lua
5859
popd
59-
for manpage in pandoc.1 pandoc-lua.1 pandoc-server.1
60+
for manpage in pandoc.1 pandoc-lua.1 pandoc-server.1 pandoc-templates.5
6061
do
61-
cp "$WORK/pandoc-cli/man/$manpage" "$DEST/share/man/man1/$manpage"
62-
gzip -9 "$DEST/share/man/man1/$manpage"
62+
cp "$WORK/pandoc-cli/man/$manpage" "$DEST/share/man/man${manpage##*.}/$manpage"
63+
gzip -9 "$DEST/share/man/man${manpage##*.}/$manpage"
6364
done
6465
cp $WORK/COPYRIGHT "$COPYRIGHT"
6566
echo "" >> "$COPYRIGHT"
@@ -84,9 +85,11 @@ make_tarball() {
8485
pushd "$ARTIFACTS"
8586
rm -rf "$TARGET"
8687
mkdir "$TARGET"
87-
mkdir "$TARGET/bin" "$TARGET/share" "$TARGET/share/man" "$TARGET/share/man/man1"
88+
mkdir "$TARGET/bin" "$TARGET/share" "$TARGET/share/man" "$TARGET/share/man/man1" "$TARGET/share/man/man5"
8889
cp $WORK/pandoc-cli/man/pandoc.1 $WORK/pandoc-cli/man/pandoc-server.1 $WORK/pandoc-cli/man/pandoc-lua.1 "$TARGET/share/man/man1"
90+
cp $WORK/pandoc-cli/man/pandoc-templates.5 "$TARGET/share/man/man5"
8991
gzip -9 "$TARGET"/share/man/man1/*.1
92+
gzip -9 "$TARGET"/share/man/man5/*.5
9093
mv pandoc "$TARGET/bin"
9194
pushd "$TARGET/bin"
9295
ln -s pandoc pandoc-server

macos/make_macos_release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ mkdir -p $ARTIFACTS
2222
mkdir -p $RESOURCES
2323
mkdir -p $DEST/bin
2424
mkdir -p $DEST/share/man/man1
25+
mkdir -p $DEST/share/man/man5
2526

2627
# Copy binary and strip it
2728
echo "Copying executable..."
@@ -33,6 +34,7 @@ echo "Copying manuals and license..."
3334
cp pandoc-cli/man/pandoc.1 "$DEST/share/man/man1/pandoc.1"
3435
cp pandoc-cli/man/pandoc-server.1 "$DEST/share/man/man1/pandoc-server.1"
3536
cp pandoc-cli/man/pandoc-lua.1 "$DEST/share/man/man1/pandoc-lua.1"
37+
cp pandoc-cli/man/pandoc-templates.5 "$DEST/share/man/man5/pandoc-templates.5"
3638
"$BINPATH" -s COPYING.md -Vpagetitle=License -o "$RESOURCES/license.html"
3739

3840
# Prepare distribution directory; after downloading, run 'make' to notarize

0 commit comments

Comments
 (0)