properly change TEXMFCACHE dir in context shell script

This commit is contained in:
Tom Callaway 2016-09-29 09:28:23 -04:00
parent feca7cd149
commit f9c29c18d8
1 changed files with 1 additions and 2 deletions

View File

@ -300030,7 +300030,6 @@ done
popd
# fix cache dir
sed -i 's|TEXMFCACHE=/var/lib/texmf;|$HOME/.cache/texlive;|g' %{buildroot}%{_bindir}/context
sed -i 's|~/.texlive2016|~/.cache/texlive|g' %{buildroot}%{_sysconfdir}/texlive/web2c/texmf.cnf
# install shared libs, nuke static ones
@ -300109,7 +300108,7 @@ cat > context << EOF
#!/bin/sh
export TEXMF=/usr/share/texlive/texmf-dist;
export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c;
export TEXMFCACHE=/var/lib/texmf;
export TEXMFCACHE=\$HOME/.cache/texlive;
%{_bindir}/mtxrun --script context "\$@"
EOF
chmod 0755 context