[cig-commits] [commit] master: Write git revision into output file (eeb801f)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Oct 15 06:16:57 PDT 2014


Repository : https://github.com/geodynamics/axisem

On branch  : master
Link       : https://github.com/geodynamics/axisem/compare/7a0ed4115e0445ccb0219c894eedf4bf157d8689...eeb801f118c4bb6cfc58dbb00d135b4b43740c1e

>---------------------------------------------------------------

commit eeb801f118c4bb6cfc58dbb00d135b4b43740c1e
Author: sstaehler <staehler at geophysik.uni-muenchen.de>
Date:   Wed Oct 15 15:16:54 2014 +0200

    Write git revision into output file
    
     - Was not working since transition to github


>---------------------------------------------------------------

eeb801f118c4bb6cfc58dbb00d135b4b43740c1e
 SOLVER/submit.csh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SOLVER/submit.csh b/SOLVER/submit.csh
index d64526b..55af180 100755
--- a/SOLVER/submit.csh
+++ b/SOLVER/submit.csh
@@ -39,8 +39,8 @@ if ( $netcdf_requested == 'true' && $netcdf_compiled != 'true') then
   exit
 endif
 
-
-echo "RELEASE_1.1  SVN_VERSION      " > runinfo
+set svnversion = `git rev-parse --short HEAD`
+echo $svnversion " SVN_VERSION      " > runinfo
 set username = `whoami`
 echo $username "USER_NAME        " >> runinfo
 set hostname = `hostname`



More information about the CIG-COMMITS mailing list