CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Bugs

SVN revision number in OF-1.5-dev

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 2, 2009, 08:39
Default SVN revision number in OF-1.5-dev
  #1
Member
 
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 85
Rep Power: 8
hannes is on a distinguished road
in $WM_PROJECT_DIR/bin/foamVersion, the revision number is extracted by this command:
FOAM_DEV_SVN_REVISION_NUMBER=`$SVN_CMD info $WM_PROJECT_DIR | grep "Last Changed Rev:" | awk '{print $4}'`;

This only works, if english is selected as system language. With the following modification, the command would be independent from the selected language:

FOAM_DEV_SVN_REVISION_NUMBER=`LANG=en $SVN_CMD info $WM_PROJECT_DIR | grep "Last Changed Rev:" | awk '{print $4}'`;

Best regards, Hannes
hannes is offline   Reply With Quote

Old   July 2, 2009, 09:12
Default
  #2
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 328
Rep Power: 12
mbeaudoin will become famous soon enough
Hello,

My bad...

I will modify this script so it will not be dependant on the locale settings.

Could you show me what is the output of the following command on your workstation:

svn info $WM_PROJECT_DIR


Thank you for your patience.

Martin


Quote:
Originally Posted by hannes View Post
in $WM_PROJECT_DIR/bin/foamVersion, the revision number is extracted by this command:
FOAM_DEV_SVN_REVISION_NUMBER=`$SVN_CMD info $WM_PROJECT_DIR | grep "Last Changed Rev:" | awk '{print $4}'`;

This only works, if english is selected as system language. With the following modification, the command would be independent from the selected language:

FOAM_DEV_SVN_REVISION_NUMBER=`LANG=en $SVN_CMD info $WM_PROJECT_DIR | grep "Last Changed Rev:" | awk '{print $4}'`;

Best regards, Hannes
mbeaudoin is offline   Reply With Quote

Old   July 2, 2009, 09:21
Default
  #3
Member
 
Hannes Kröger
Join Date: Mar 2009
Location: Rostock, Germany
Posts: 85
Rep Power: 8
hannes is on a distinguished road
Hello Martin,

it gives the following:


Pfad: /home/kroegeh/OpenFOAM/OpenFOAM-1.5-dev
URL: https://openfoam-extend.svn.sf.net/s...enFOAM-1.5-dev
Basis des Projektarchivs: https://openfoam-extend.svn.sf.net/s...penfoam-extend
UUID des Projektarchivs: e4e07f05-0c2f-0410-a05a-b8ba57e0c909
Revision: 1316
Knotentyp: Verzeichnis
Plan: normal
Letzter Autor: hjasak
Letzte geänderte Rev: 1315
Letztes Änderungsdatum: 2009-07-01 18:08:34 +0200 (Mi, 01. Jul 2009)

Regards, Hannes
hannes is offline   Reply With Quote

Old   July 2, 2009, 09:26
Default
  #4
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 328
Rep Power: 12
mbeaudoin will become famous soon enough
Hello Hannes,

Yep... silly mistake on my part... I will fix this right away.

Thanks to you and Jens Klostermann for reporting this.

Best regards

Martin

Quote:
Originally Posted by hannes View Post
Hello Martin,

it gives the following:


Pfad: /home/kroegeh/OpenFOAM/OpenFOAM-1.5-dev
URL: https://openfoam-extend.svn.sf.net/s...enFOAM-1.5-dev
Basis des Projektarchivs: https://openfoam-extend.svn.sf.net/s...penfoam-extend
UUID des Projektarchivs: e4e07f05-0c2f-0410-a05a-b8ba57e0c909
Revision: 1316
Knotentyp: Verzeichnis
Plan: normal
Letzter Autor: hjasak
Letzte geänderte Rev: 1315
Letztes Änderungsdatum: 2009-07-01 18:08:34 +0200 (Mi, 01. Jul 2009)

Regards, Hannes
mbeaudoin is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Mesh Utilities 41 January 17, 2013 02:43
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 16:23.