Skip to content

Commit

Permalink
Install the current lt3luabridge package in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Dec 16, 2024
1 parent 89c797f commit 74f9049
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ARG DEPENDENCIES="\
ca-certificates \
curl \
gawk \
git \
graphviz \
m4 \
moreutils \
Expand Down Expand Up @@ -102,6 +103,9 @@ rm -rfv ${PREINSTALLED_DIR}/tex/generic/markdown/
rm -rfv ${PREINSTALLED_DIR}/tex/latex/markdown/
rm -rfv ${PREINSTALLED_DIR}/tex/context/third/markdown/

# Uninstall the distribution lt3luabridge package
rm -rfv ${PREINSTALLED_DIR}/tex/generic/lt3luabridge/

# Install the current Markdown package
make -C ${BUILD_DIR} implode
make -C ${BUILD_DIR} base
Expand All @@ -125,6 +129,16 @@ mkdir -p ${INSTALL_DIR}/tex/
cp ${BUILD_DIR}/t-markdown.tex ${INSTALL_DIR}/tex/context/third/markdown/
cp ${BUILD_DIR}/t-markdownthemewitiko_markdown_defaults.tex ${INSTALL_DIR}/tex/context/third/markdown/

# Install the current lt3luabridge package
git clone https://github.com/witiko/lt3luabridge.git
cd lt3luabridge
luatex lt3luabridge.ins

mkdir -p ${INSTALL_DIR}/tex/generic/lt3luabridge/
cp lt3luabridge.tex ${INSTALL_DIR}/tex/generic/lt3luabridge/
cp lt3luabridge.sty ${INSTALL_DIR}/tex/generic/lt3luabridge/
cp t-lt3luabridge.tex ${INSTALL_DIR}/tex/generic/lt3luabridge/

# Generate the ConTeXt file database
if test ${DEV_IMAGE} != true
then
Expand All @@ -139,6 +153,12 @@ make -C ${BUILD_DIR} dist NO_DOCUMENTATION=${DEV_IMAGE}
mkdir ${BUILD_DIR}/dist
unzip ${BUILD_DIR}/markdown.tds.zip -d ${BUILD_DIR}/dist

# Include the current lt3luabridge package in the distribution directory
mkdir -p ${BUILD_DIR}/dist/tex/generic/lt3luabridge/
cp lt3luabridge.tex ${BUILD_DIR}/dist/tex/generic/lt3luabridge/
cp lt3luabridge.sty ${BUILD_DIR}/dist/tex/generic/lt3luabridge/
cp t-lt3luabridge.tex ${BUILD_DIR}/dist/tex/generic/lt3luabridge/

EOF


Expand Down Expand Up @@ -206,9 +226,12 @@ rm -rfv ${PREINSTALLED_DIR}/tex/generic/markdown/
rm -rfv ${PREINSTALLED_DIR}/tex/latex/markdown/
rm -rfv ${PREINSTALLED_DIR}/tex/context/third/markdown/

# Uninstall the distribution lt3luabridge package
rm -rfv ${PREINSTALLED_DIR}/tex/generic/lt3luabridge/

EOF

# Install the Markdown package
# Install the Markdown package and the current lt3luabridge package
COPY --from=build ${BUILD_DIR}/dist ${INSTALL_DIR}/

COPY <<EOF ${BINARY_DIR}/markdown-cli
Expand Down

0 comments on commit 74f9049

Please sign in to comment.