File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ mkdir -p $ARTIFACTS
2222mkdir -p $RESOURCES
2323mkdir -p $DEST /bin
2424mkdir -p $DEST /share/man/man1
25+ mkdir -p $DEST /share/man/man5
2526
2627# Copy binary and strip it
2728echo " Copying executable..."
@@ -33,6 +34,7 @@ echo "Copying manuals and license..."
3334cp pandoc-cli/man/pandoc.1 " $DEST /share/man/man1/pandoc.1"
3435cp pandoc-cli/man/pandoc-server.1 " $DEST /share/man/man1/pandoc-server.1"
3536cp 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
You can’t perform that action at this time.
0 commit comments