How to modify .kdev4 file in script?
Alvin Beach
alvinbeach at gmail.com
Thu Oct 30 14:09:45 GMT 2014
On 30/10/14 09:32, Aleksey Midenkov wrote:
> I see now there is some strangely encoded multiline strings (though
> IMO it would be better to make separate section for each multiline
> string):
>
> [CustomDefinesAndIncludes][ProjectPath0]
> Defines=\x00\x00\x00\x00
> Includes=\x00\x00\x00\x04\x00\x00\x00`\x00/\x00h\x00o\x00m\x00e...
> Path=.
>
> How to properly decode and encode them with bash/perl script?
I asked about something along these lines before (i.e. BuildItems=@Variant(\x00\x00\x00...)). I too manipulate the .kdev4 project files via script.
I was told that these are written by KConfig and was directed to look at kreadconfig and kwriteconfig. I've only had a quick look at those programs.
In the end I just cleared the value (everything after the '='). This wouldn't be a solution if you would like to edit the values though.
Perhaps you will have better luck with kreadconfig and kwriteconfig. If you figure it out, please do share.
Cheers,
Alvin
More information about the KDevelop
mailing list