diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2011-09-02 22:52:17 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2011-09-02 22:52:17 +0200 |
commit | cc84938b0b3cb7716ed2d1d72d1ec5abb0a7ce84 (patch) | |
tree | 36a1a3f4af765f274229c62781102162f14dc624 /libre/texlive-fontsextra-libre/texlive.install | |
parent | 5dabee169f9495fe7f72334ab2d8228c6763b944 (diff) | |
download | abslibre-cc84938b0b3cb7716ed2d1d72d1ec5abb0a7ce84.tar.gz abslibre-cc84938b0b3cb7716ed2d1d72d1ec5abb0a7ce84.tar.bz2 abslibre-cc84938b0b3cb7716ed2d1d72d1ec5abb0a7ce84.zip |
libre/texlive-fontsextra-libre without a font without license.
Diffstat (limited to 'libre/texlive-fontsextra-libre/texlive.install')
-rw-r--r-- | libre/texlive-fontsextra-libre/texlive.install | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libre/texlive-fontsextra-libre/texlive.install b/libre/texlive-fontsextra-libre/texlive.install new file mode 100644 index 000000000..c2c5e8165 --- /dev/null +++ b/libre/texlive-fontsextra-libre/texlive.install @@ -0,0 +1,52 @@ +PKGNAME="texlive-fontsextra" +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 shoud go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf/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 shoud go" + echo " into /etc/texmf/web2c/updmap-local.cfg" + cp usr/share/texmf/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." +} |