On Tue, 19 Feb 2013, Jussi Lahtinen wrote:
> Hmmm... I have understand that "gbx3 --version" gets version number from
> some file?
> So, maybe compiling could run something like "svn info | grep -w Revision"
> to create revision file too?
> 
> Jussi

That was my idea, too. You can check if the current directory is an svn
repository by branching:

if test `svn info >/dev/null 2>&1; echo $?` -eq 0

and if it is, take the revision into a variable:

GAMBAS_REVISION=`svn info | sed -n 's/^Revision: \(.*\)$/\1/p'`

otherwise make the variable zero.

My problem was to make this variable available to gbx. If anyone helped me
with this, I'd be glad.

Regards,
Tobi

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to