[Libreoffice] Include Guards (easy 6)

Cédric Bosdonnat cedric.bosdonnat.ooo at free.fr
Mon Oct 4 02:14:54 PDT 2010


Hi Michael,

On Sun, 2010-10-03 at 23:20 -0600, callahan at xmission.com wrote:
> This is in response to Easy Task 6, removal of various include guards  
> throughout the source code.
> 
> I have created and included a small python script to identify and  
> remove these include guards.  Here is the basics on how to use it:

Thanks for that clever solution! Many thanks for your script: I'm sure
it'll help us and others to quickly fix this task.

> python fixguard.py somefile.cxx
> 
> Or recursively:
> 
> # Go to the clone/writer directory.
> find . -name '*.cxx' -exec grep python $HOME/fixguard.py {} \;
> git diff
> # verify that the diffs are sane and check them in.

I've pushed the script to the bin folder of the build repo so that
anyone can use it. I also mentioned your tool on the wiki page for
others to know it.

Regards,
--
Cedric



More information about the LibreOffice mailing list