Thanks!
Ended up using:
Code:
VERSION=$(svn info http://place.net/trunk/ 2>&1|awk '/^Revision:/ {print $2}')
cp -r trunk "${PRGNAM}-r${VERSION}"
My only gripe is not being able to do this with a single variable.
If I use:
Code:
VERSION=$(svn checkout http://place.net/trunk | grep -o '[0-9]*')
cp -r trunk "${PRGNAM}-r${VERSION}"
it hangs and terminal has no output; when I ctrl-break and use svn manually it says it's locked and I have to use svn cleanup... Even if I do echo $VERSION prior to cp.
Would be nice to do this in one instance of svn rather than executing svn twice (svn checkout ; svn --info).