#!/bin/bash hvbuild_post() { ln -sfv libfl.a /usr/lib/libl.a # Create a bash script called lex that calls flex and have it emulate lex. cat > /usr/bin/lex << "EOF" #!/bin/sh # /usr/bin/lex exec /usr/bin/flex -l "$@" EOF chmod -v 755 /usr/bin/lex }