%general-entities; ]> Flex-&flex-version; Flex <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.1 SBU</seg><seg>3.4 MB</seg></seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Flex Apply a patch: patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch Touch the man-page: touch doc/flex.1 Now prepare Flex for compilation: ./configure --prefix=/usr Compile the package: make To test the results, issue: make check. Now install the package: make install Create a symlink: ln -s libfl.a /usr/lib/libl.a Create a lex script: 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 Contents of Flex See testing