#!/bin/sh
# $FreeBSD: japanese/ptex/files/updmap-ptex.in 300896 2012-07-14 13:54:48Z beat $

WEB2C="\$TEXMF/web2c{/ptex,}"; export WEB2C
TEXPSHEADERS="\$TEXMF/{dvips{/ptex,},fonts/{enc,type1,type3}}//"; export TEXPSHEADERS
TEXCONFIG="\$TEXMF/dvips{/ptex,}//"; export TEXCONFIG
TEXFONTMAPS="\$TEXMF/fonts/map{/ptex,}//"; export TEXFONTMAPS
TEXCONFIGINPUTS="\$TEXMF/texconfig{/ptex,}"; export TEXCONFIGINPUTS

FONTSMAPVARDIR=/usr/local/share/texmf-var/fonts/map/ptex
: ${UPDMAP_DIST:=/usr/local/share/texmf/updmap/updmap.dist}

/bin/sh ${UPDMAP_DIST} \
	--dvipsoutputdir ${FONTSMAPVARDIR}/dvips/updmap \
	--dvipdfmoutputdir ${FONTSMAPVARDIR}/dvipdfm/updmap \
	--pdftexoutputdir ${FONTSMAPVARDIR}/pdftex/updmap \
	"$@"
