X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/099d4d498049f3c04b6df55b27ae1f8019e157c8..8efbb998496a031936c87525467cad0786fbacd6:/packages/texlive/termux-install-tl.sh diff --git a/packages/texlive/termux-install-tl.sh b/packages/texlive/termux-install-tl.sh index f5e19cdb..bb77ce61 100755 --- a/packages/texlive/termux-install-tl.sh +++ b/packages/texlive/termux-install-tl.sh @@ -62,10 +62,14 @@ XXHEREXX #fix tlpkg sed -E -i "s@/bin/sh@$PREFIX/bin/sh@" ${TL_ROOT}/${TL_VERSION}/tlpkg/TeXLive/TLUtils.pm +#fix shebangs +sed -i -E "1 s@^#\!(.*)/[sx]?bin/(.*)@#\!$PREFIX/bin/\2@" ${TL_ROOT}/${TL_VERSION}/texmf-dist/web2c/* +sed -i -E "1 s@^#\!(.*)/[sx]?bin/(.*)@#\!$PREFIX/bin/\2@" ${TL_ROOT}/${TL_VERSION}/bin/custom/* + #source the environment . $PREFIX/etc/profile.d/texlive.sh #setup links texlinks -rm -rdf $TMPDIR/termux-tl-installer +rm -rf $TMPDIR/termux-tl-installer