Skip to content

Instantly share code, notes, and snippets.

@tiarno
Forked from mpg/enable-local-fonts
Last active January 19, 2016 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiarno/e7ddf04faa5694dc7369 to your computer and use it in GitHub Desktop.
Save tiarno/e7ddf04faa5694dc7369 to your computer and use it in GitHub Desktop.
Enable fonts from texmf-local using updmap-sys --enable Map
#!/bin/sh
# Enable fonts from texmf-local using updmap-sys --enable Map
#
# Manuel Pégourié-Gonnard, 2010; WTFPL v2.
find -H `kpsewhich --var-value TEXMFLOCAL` -name '*.map' | while read file
do
updmap-sys --nohash --nomkmap --enable Map `basename $file`
done
updmap-sys --nohash
mktexlsr `kpsewhich --var-value TEXMFSYSVAR`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment