aboutsummaryrefslogtreecommitdiff
path: root/cad/cascade-compiler/files/flex
blob: 0e549185d6cad7b6dc519f77ac6f8f79470d78b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/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>|'