[arch-general] "$startdir/src", "$startdir/pkg" and "|| return 1" in official packages

Allan McRae allan at archlinux.org
Fri Sep 17 09:53:59 EDT 2010


On 17/09/10 23:35, Lukas Fleischer wrote:
> Although this isn't really significant... I was just curious :)
>
> `grep '${\?startdir}\?/src' /var/abs/*/*/PKGBUILD | wc -l` - "648"
>
> `grep '${\?startdir}\?/pkg' /var/abs/*/*/PKGBUILD | wc -l` - "1385"
>
> `fgrep '|| return 1' /var/abs/*/*/PKGBUILD | wc -l` - "9274"
>
> Isn't that something that could be fixed easily using sed(1)/awk(1)?
> E.g. using:
>
> `find . -name 'PKGBUILD' -exec sed -i 's/$startdir\/src/$srcdir/g;
> s/${startdir}\/src/${srcdir}/g; s/$startdir\/pkg/$pkgdir/g;
> s/${startdir}\/pkg/${pkgdir}/g' {} ';'`
>
> ... to replace all that "$startdir/[...]" stuff?
>

Well, it would need to be done on SVN trunk and released to the repo 
branches...  so it is not just a simple sed.

Anyway, whats the rush?  They will change eventually.  There should be 
no (or very few) $startdir/{src,pkg} in [core].

Allan



More information about the arch-general mailing list