File tree Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,28 @@ if [[ "$ARCH" == "ppc64le" ]]; then
19
19
20
20
cabal update
21
21
cd pandoc-cli
22
- cabal build -j$( nproc)
23
- cabal install --installdir=/usr/local --overwrite-policy=always --install-method=copy
22
+ cabal build -j" $( nproc) "
23
+ mkdir -p /usr/local/pandoc/bin
24
+ cabal install \
25
+ --installdir=/usr/local/pandoc/bin \
26
+ --overwrite-policy=always \
27
+ --install-method=copy
24
28
25
29
# Clean up Haskell build system
26
30
rm -rf ~ /.cabal ~ /.ghc /tmp/pandoc
27
31
dnf remove -y cabal-install ghc gmp-devel
28
32
dnf clean all && rm -rf /var/cache/dnf
29
- fi
30
33
31
- if [[ " $ARCH " == " x86_64" ]]; then
34
+ /usr/local/pandoc/bin/pandoc --version
35
+
36
+ elif [[ " $ARCH " == " x86_64" ]]; then
32
37
# pandoc installation
33
38
curl -L https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-linux-amd64.tar.gz -o /tmp/pandoc.tar.gz
34
39
mkdir -p /usr/local/pandoc
35
40
tar xvzf /tmp/pandoc.tar.gz --strip-components 1 -C /usr/local/pandoc/
36
41
rm -f /tmp/pandoc.tar.gz
37
- fi
38
42
39
- /usr/local/pandoc --version
43
+ else
44
+ echo " Unsupported architecture: $ARCH " >&2
45
+ exit 1
46
+ fi
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if [[ "$ARCH" == "ppc64le" ]]; then
24
24
25
25
# Configure, build, install
26
26
../texlive-20250308-source/configure --prefix=/usr/local/texlive
27
- make -j$( nproc)
27
+ make -j" $( nproc) "
28
28
make install
29
29
30
30
# Symlink for pdflatex
@@ -36,9 +36,8 @@ if [[ "$ARCH" == "ppc64le" ]]; then
36
36
37
37
export PATH=" /usr/local/texlive/bin/powerpc64le-unknown-linux-gnu:$PATH "
38
38
pdflatex --version
39
- fi
40
39
41
- if [[ " $ARCH " == " x86_64" ]]; then
40
+ elif [[ " $ARCH " == " x86_64" ]]; then
42
41
# tex live installation
43
42
echo " Installing TexLive to allow PDf export from Notebooks"
44
43
curl -L https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz -o install-tl-unx.tar.gz
@@ -47,5 +46,10 @@ if [[ "$ARCH" == "x86_64" ]]; then
47
46
perl ./install-tl --no-interaction --scheme=scheme-small --texdir=/usr/local/texlive
48
47
cd /usr/local/texlive/bin/x86_64-linux
49
48
./tlmgr install tcolorbox pdfcol adjustbox titling enumitem soul ucs collection-fontsrecommended
49
+
50
+ else
51
+ echo " Unsupported architecture: $ARCH " >&2
52
+ exit 1
53
+
50
54
fi
51
55
You can’t perform that action at this time.
0 commit comments