On Mon, Apr 08, 2013 at 05:23:24PM -0300, Rafael Ferreira wrote:
Hi there.
I notice that if you have SRCDEST set in makepkg.conf, working in 'src/' folder with Subversion doesn't seem to work just like 'git log -1 ....' or 'git describe | ....', as it seems that 'src/' is simply a 'svn export' copy of $SRCDEST (e.g.: /home/foobar/sources).
In pcsx2-svn [1], I'm using the following function to accomplish the task of getting pkgver dynamically:
pkgver () { svnversion "${SRCDEST:-$srcdir}"/$pkgname }
Any opinions or better solution to get pkgver?
[1] https://aur.archlinux.org/packages/pcsx2-svn/
Rafael Ferreira
you could just cd $pkgnaem and not include $SRCDEST or $srcdir, because before pkgver, makepkg places you in the correct directory to just cd into the svn checkout. -- Daniel Wallace Archlinux Trusted User (gtmanfred) Georgia Institute of Technology