#!/bin/sh # call the real flex flex.real "$@" # update the FlexLexer.h include that the above command must have created find ${FREEBSD_WRKSRC} -name "*.cc" | xargs sed -i '' 's|#include |#include <${FREEBSD_LOCALBASE}/include/flex/FlexLexer.h>|'