texlive, texlive-bin: remove old preinst cleaning

This commit is contained in:
Henrik Grimler 2018-08-28 09:11:32 +02:00 committed by Leonid Pliushch
parent a0efbdb615
commit 8f2d0e7c0e
2 changed files with 0 additions and 14 deletions

View File

@ -144,11 +144,3 @@ termux_step_pre_configure() {
cp "$TERMUX_PKG_BUILDER_DIR"/pdftoepdf-poppler0.75.0.cc "$TERMUX_PKG_SRCDIR"/texk/web2c/pdftexdir/pdftoepdf.cc # commit 4dbbcd8
cp "$TERMUX_PKG_BUILDER_DIR"/pdftosrc-poppler0.72.0.cc "$TERMUX_PKG_SRCDIR"/texk/web2c/pdftexdir/pdftosrc.cc # commit 68f53cf
}
termux_step_create_debscripts() {
# Clean texlive's folder if needed (run on fresh install)
echo "#!$TERMUX_PREFIX/bin/bash" > preinst
echo "if [ ! -d $PREFIX/opt/texlive ]; then echo 'Removing residual files from old version of TeX Live for Termux'; rm -rf $PREFIX/opt/texlive; fi" >> preinst
echo "exit 0" >> preinst
chmod 0755 preinst
}

View File

@ -37,12 +37,6 @@ termux_step_make() {
}
termux_step_create_debscripts() {
# Clean texlive's folder if needed (run on upgrade)
echo "#!$TERMUX_PREFIX/bin/bash" > preinst
echo "if [ -d $TERMUX_PREFIX/opt/texlive ]; then echo 'Removing residual files from old version of TeX Live for Termux'; rm -rf $PREFIX/opt/texlive; fi" >> preinst
echo "exit 0" >> preinst
chmod 0755 preinst
echo "#!$TERMUX_PREFIX/bin/bash" > postinst
echo "mktexlsr $TL_ROOT/texmf-var" >> postinst
echo "texlinks" >> postinst