[arch-general] PKGBUILD parser
allan at archlinux.org
Sun May 9 08:44:09 EDT 2010
On 09/05/10 22:35, Matthew Monaco wrote:
> On 05/09/2010 05:53 AM, Andre "Osku" Schmidt wrote:
>> my second rewrite seems also come to a dead-end, and before i rewrite
>> this again, i was hoping someone here could give me tips on what would
>> be the best method to parse a PKGBUILD file ?
>> you can play with my latest fail here:
>> @todo parseBuild() fails if you have } in body
>> @todo some array content in PKGBUILD mix ' and ", so this fails ATM...
>> (and the test-pkgbuild.html somehow doesn't parse build() on every
>> second run...)
> Is this something that's strictly intended for the web? Because you
> could just source it, and that would only leave you with the comments to
Sourcing is dangerous if the PKGBUILD is from an untrusted source. It
also fails with package splitting...
More information about the arch-general