On 05/25/2015 07:15 PM, Doug Newgard wrote:
On Mon, 25 May 2015 17:19:07 -0700 Kyle Terrien <kyleterrien@gmail.com> wrote:
1. Is there any way to generate the .SRCINFO file without doing the tar/untar workaround?
mksrcinfo from pkgbuild-introspection-git. You can easily use it to add it to all commmits with git filter-branch --tree-filter
Wow! I didn't know about mksrcinfo, but I'm definitely using it now. And according to the manual, that git filter-branch command actually modifies every commit in the repo. I had no idea you could do that. Git never ceases to amaze me.
2. Why is .SRCINFO even needed? Why can't AUR parse the raw PKGBUILD?
There are no decent bash parsers out there. To get real info, they would have to be sourced/executed, which is a huge security risk.
I wonder if Perl can parse it. I'll have to try a couple of experiments sometime. Thank you so much, --Kyle