ports/cad/cascade-compiler/files/flex
2020-01-05 08:10:27 +00:00

9 lines
274 B
Bash
Executable file

#!/bin/sh
# $FreeBSD$
# 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>|'