ports/cad/cascade-compiler/files/flex
2021-04-06 16:31:13 +02:00

7 lines
261 B
Bash
Executable file

#!/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 <FlexLexer.h>|#include <${FREEBSD_LOCALBASE}/include/flex/FlexLexer.h>|'