summaryrefslogtreecommitdiff
path: root/libre/texlive-core-libre/texlive.install
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-09-02 16:32:28 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2011-09-02 16:32:28 +0200
commit5dabee169f9495fe7f72334ab2d8228c6763b944 (patch)
tree082ad8da3c6940531b0de194f50d658f4ce17b24 /libre/texlive-core-libre/texlive.install
parent8b6f468be06bc206a42581ba93065ddf31766970 (diff)
downloadabslibre-5dabee169f9495fe7f72334ab2d8228c6763b944.tar.gz
abslibre-5dabee169f9495fe7f72334ab2d8228c6763b944.tar.bz2
abslibre-5dabee169f9495fe7f72334ab2d8228c6763b944.zip
libre/texlive-core-libre-2011.23170-1, without nonfree packages.
Diffstat (limited to 'libre/texlive-core-libre/texlive.install')
-rw-r--r--libre/texlive-core-libre/texlive.install58
1 files changed, 58 insertions, 0 deletions
diff --git a/libre/texlive-core-libre/texlive.install b/libre/texlive-core-libre/texlive.install
new file mode 100644
index 000000000..a758c084d
--- /dev/null
+++ b/libre/texlive-core-libre/texlive.install
@@ -0,0 +1,58 @@
+PKGNAME="texlive-core"
+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."
+ echo -n "creating all formats..."
+ usr/bin/fmtutil-sys --all 1>/dev/null
+ echo " done."
+ echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
+# echo "NB: To setup ConTeXt and the lua(la)tex font db,"
+# echo " see http://wiki.archlinux.org/index.php/TeX_Live"
+}
+
+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."
+ echo ">>> texlive: recreating all formats..."
+ usr/bin/fmtutil-sys --all 1>/dev/null
+ echo " done."
+ echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
+# echo "NB: To setup ConTeXt and the lua(la)tex font db,"
+# echo " see http://wiki.archlinux.org/index.php/TeX_Live"
+ if [[ "$2" == 200* ]]; then
+ echo "Important note. Some directories have moved:"
+ echo " \$TEXMFSYSVAR is now /var/lib/texmf (previously /usr/share/texmf-var)"
+ echo " \$TEXMFSYSCONFIG is now /etc/texmf (previously /usr/share/texmf-config)"
+ echo "Please move and update the config files you had modified and delete the rest."
+ echo "(Note however that updmap.cfg has been automatically copied and updated.)"
+ fi
+}
+