1 2 3 4 5 6 7 8 9 10 11
#!/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