0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/texlive-installer/termux-patch-texlive.sh
Henrik Grimler 6e65c289ea
updpkg(main/texlive-installer): update to 20240310
Starting from this release we switch and install to
$PREFIX/share/texlive/2024 instead of $PREFIX/share/texlive.
2024-03-24 09:06:16 +01:00

25 lines
717 B
Bash

#!@TERMUX_PREFIX@/bin/bash
set -e
PREFIX=@TERMUX_PREFIX@
TL_ROOT=$PREFIX/share/texlive/@YEAR@
cd $TL_ROOT
for patch in $PREFIX/opt/texlive/*.diff; do
printf "Checking if \$PREFIX/opt/texlive/$(basename $patch) can be applied.. "
# --forward so that patch does not apply reversed patches
# --reject-file /dev/null so we do not get .rej files
# --strip 0 to not strip folders from file path
# --batch to not ask user for input
# Redirect output to /dev/null to not show warnings/errors for failed patches
if ! patch --forward \
--reject-file /dev/null \
--strip 0 \
--batch > /dev/null < $patch; then
echo "Nope"
else
echo "Yes"
fi
done