From 5635ef9c57ab58bcf50a1341725fab62fe35ed8d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 6 Aug 2022 14:34:43 -0700 Subject: Replace old trypandoc code with new pandoc-cgi. This is based on servant. It is less hacky and more extensible. --- linux/make_artifacts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'linux/make_artifacts.sh') 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 -- cgit v1.2.3