2 Nov
2009
2 Nov
'09
3:12 p.m.
On Mon, Nov 2, 2009 at 8:08 AM, Daenyth Blank <daenyth+arch@gmail.com> wrote:
On Mon, Nov 2, 2009 at 06:45, Eric Bélanger <snowmaniscool@gmail.com> wrote:
Another way is to get the SRCDEST and PKGDEST without sourcing the makepkg.conf:
eval $(grep SRCDEST /etc/makepkg.conf) eval $(grep PKGDEST /etc/makepkg.conf)
This would have to be eval $(grep '^SRCDEST=' /etc/makepkg.conf so that it wouldn't get any commented lines.
I'm pretty sure eval-ing a commented line won't do a whole lot: $ eval '#SRCDEST=foobar' $ echo $SRCDEST $ eval 'SRCDEST=foobar' $ echo $SRCDEST foobar