summaryrefslogtreecommitdiff
path: root/cad/cascade-compiler/files/flex
blob: fe0155516b8e9df287fd32d16e5862901cc7e649 (plain)
1
2
3
4
5
6
7
#!/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>|'