#!/bin/sh # find ${WRKSRC} -name Makefile -print | xargs rm xpath=/usr/X11R6 if [ -n $xpath ]; then xpath=`echo $xpath | sed 's;/bin/imake$;;'` sed "s;/usr/X386;$xpath;" ${WRKSRC}/makefile >${WRKSRC}/makefile.foo mv ${WRKSRC}/makefile.foo ${WRKSRC}/makefile fi