[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] Re: problem with ypur allocator + Qt (but not a proble
From: |
Joris van der Hoeven |
Subject: |
Re: [Texmacs-dev] Re: problem with ypur allocator + Qt (but not a problem) |
Date: |
Fri, 9 Aug 2002 10:04:41 +0200 (MET DST) |
> Well, it was part manual and part automated.
> The automated part could have been done using sed:
>
> find -name '*.hh' -o -name '*.cc' | xargs perl -p -i.bak -e
> 's/FALSE/false/g; s/TRUE/true/g'
>
> -pe means that we apply the script (between quotes) to all lines of
> parameter files
Where do I see -pe ?
> -i.bak is to be on the safe side and backup the files with the .bak suffix
What does -i do precisely?
> find -name '*.bak' | rm -f # removes the saved files
I assume that you mean
find -name '*.bak' | xargs rm -f
> Then you will see that the remaining diffs are very small by applying
> makepatch, which is BTW a perl script
> to an original hierarchy and a modified one. basically it is:
> -supressing the #define for FALSE and TRUE
> -setting the returned value of my_predicate(...) to Bool in its
> declaration and definitions to
> be conformant with the X include files
OK.