#!/bin/sh
# compile_flex
cd /usr/src/flex*

./configure --prefix=/usr &&
make &&
make install


cat > /usr/bin/lex << "EOF"
#!/bin/sh
# Begin /usr/bin/lex

exec /usr/bin/flex -l "$@"

# End /usr/bin/lex
EOF
chmod 755 /usr/bin/lex
