mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
14 lines
302 B
Bash
14 lines
302 B
Bash
#!/bin/sh
|
|
|
|
chgdirs=". texk texk/kpathsea texk/xdvik"
|
|
|
|
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
|