#!/bin/sh chgdirs=". kpathsea dvipsk" cd ${WRKSRC} for dir in ${chgdirs}; do ${MV} -f ${dir}/Makefile ${dir}/Makefile.bak ${SED} \ -e 's@^prefix[ ]*=.*$@prefix=${PREFIX}@' \ -e 's@^texmf[ ]*=.*$@texmf=${PREFIX}/share/texmf@' \ < ${dir}/Makefile.bak > ${dir}/Makefile done