[arch-general] PKGBUILD work

pyknite pyknite at rand0m.ch
Sat Feb 5 10:55:35 EST 2011


On 02/05/2011 04:17 PM, Bernardo Barros wrote:
> yep!
>
> could you give an example of a bash function that gets the $pkgver from a file?
Hi... I'm not verry good in bash function but this should work:

  pkgver() { . $1 ; echo $pkgver ;}

Put it in your .bashrc and then run: pkgver PKGBUILD

But it won't work with zsh...


More information about the arch-general mailing list