#!/bin/sh

if ["$2" != POST-INSTALL]; then
	exit 0
fi

MV=/bin/mv
SED=/usr/bin/sed
CHMOD=/bin/chmod

# add new mapping to dvips
cd ${PKG_PREFIX}/share/texmf/dvips/config
$MV updmap updmap.orig
$SED -e 's:extra_modules=":&musix.map :' <updmap.orig >updmap
$CHMOD +x updmap
./updmap

# reindex the TeX files
/usr/pkg/bin/texhash

#eof
