diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-04 20:54:24 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-04 20:54:24 -0300 |
commit | 9c60761a6ee0d853ae4eaeefa3f5b380fe89b335 (patch) | |
tree | fd817626588706bf64f1e4b8a62f488fe67e3705 /libre/texlive-latexextra/texlive.install | |
parent | 5d5743d3c03e9fe93ac8bfb2eb7ea1724113ecc0 (diff) | |
parent | 29af419728c92102a295f2aa17e989fc687c5f71 (diff) | |
download | abslibre-9c60761a6ee0d853ae4eaeefa3f5b380fe89b335.tar.gz abslibre-9c60761a6ee0d853ae4eaeefa3f5b380fe89b335.tar.bz2 abslibre-9c60761a6ee0d853ae4eaeefa3f5b380fe89b335.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/texlive-latexextra/texlive.install')
-rw-r--r-- | libre/texlive-latexextra/texlive.install | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libre/texlive-latexextra/texlive.install b/libre/texlive-latexextra/texlive.install new file mode 100644 index 000000000..befc29143 --- /dev/null +++ b/libre/texlive-latexextra/texlive.install @@ -0,0 +1,52 @@ +PKGNAME="texlive-latexextra" +UPDMAP="etc/texmf/web2c/updmap.cfg" +UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg" +SYNCWITHTREES='' + +MAPFILE="var/lib/texmf/arch/installedpkgs/$PKGNAME.maps" + +post_install() { + TMPFILE=`mktemp` + echo ">>> texlive: saving updmap.cfg as $TMPFILE..." + cp "$UPDMAP" "$TMPFILE" + echo ">>> texlive: regenerating updmap.cfg (custom additions should go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP + cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP + [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash + echo " done." +} + +post_upgrade() { + TMPFILE=`mktemp` + echo ">>> texlive: saving updmap.cfg as $TMPFILE..." + cp "$UPDMAP" "$TMPFILE" + echo ">>> texlive: regenerating updmap.cfg (custom additions should go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP + cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP + [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES + echo " done." +} + +pre_remove() { +for m in `cut -d' ' -f2 $MAPFILE`; do + sed -i "/\s$m/d" $UPDMAP ; +done +} + +post_remove() { + echo ">>> texlive: updating the filename database..." + usr/bin/mktexlsr + echo ">>> texlive: updating the fontmap files with updmap..." + usr/bin/updmap-sys --quiet --nohash + echo " done." +} |