Re: PKGBUILD work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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...


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux