#!/bin/sh

# $FreeBSD: tags/RELEASE_13_0_0/cad/cascade-compiler/files/flex 522115 2020-01-05 08:10:27Z yuri $

# 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>|'
