aboutsummaryrefslogtreecommitdiff
path: root/linux/make_artifacts.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-08-06 14:34:43 -0700
committerJohn MacFarlane <[email protected]>2022-08-06 14:42:38 -0700
commit5635ef9c57ab58bcf50a1341725fab62fe35ed8d (patch)
treee87f13ec47e8d7f54f76a6cae14ffd1af04dc36a /linux/make_artifacts.sh
parentfc3b9e763f88546d2987819c2303a014f464a553 (diff)
Replace old trypandoc code with new pandoc-cgi.
This is based on servant. It is less hacky and more extensible.
Diffstat (limited to 'linux/make_artifacts.sh')
-rw-r--r--linux/make_artifacts.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/make_artifacts.sh b/linux/make_artifacts.sh
index e016185ff..d611a2768 100644
--- a/linux/make_artifacts.sh
+++ b/linux/make_artifacts.sh
@@ -27,10 +27,12 @@ ghc --version
cabal v2-update
cabal v2-clean
-cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread' pandoc
+cabal v2-configure --enable-tests -fpandoc-cgi -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread' pandoc
cabal v2-build -j4
cabal v2-test -j4
-for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f /artifacts/; done
+cabal v2-install --bindir=$ARTIFACTS
+for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f $ARTIFACTS/; done
+for f in $(find dist-newstyle -name 'pandoc-cgi' -type f -perm /400); do cp $f /$ARTIFACTS/; done
# make deb