[cmake-developers] Instructions for regenerating CMake flex files?

Michael Wild themiwi at gmail.com
Mon Nov 1 11:22:06 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/01/2010 04:07 PM, Hickel, Kelly wrote:
> Hi,
>   I'm looking at porting CMake to z/OS and it seems as though I have a need to regenerate all flex/yacc/bison generated files because the system's character set is EBCDIC.  I've been googling a lot and haven't been able to find any information on how to do this, the bootstrap command doesn't do it and I haven't found anything in any of the files in the 2.8.2 source tarball that really give me any hints, except lines like this in the generated files:
> 	Run flex like this:
> 	  flex --prefix=cmListFileLexer_yy -ocmListFileLexer.c cmListFileLexer.in.l
> 
> But, I haven't found any files matching *yy* in the source tarball, or in a cloned copy of the git archive.
> 
> Any tips?
> 
> Thanks,
> 
> 
> Kelly Hickel
> Product Development Architect
> BMC Software

That's because flex files have a .l suffix (in your example it would be
cmListFileLexer.in.l). So, go ahead and run the command as the comment
says (and post-process the output manually, as is also stated in the
comments).

HTH

Michael


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzO2x0ACgkQyAe0BK8NufPHSACbBd5RsKf1UdWFVGNMGBpH53n4
IccAn1ddqf8ka1f4TVzWjZbPWdFxhTKf
=8Alu
-----END PGP SIGNATURE-----



More information about the cmake-developers mailing list