Ignore:
Timestamp:
Jun 27, 2014, 4:48:54 PM (10 years ago)
Author:
cfuguet
Message:

tsar_boot: version.sh

  • When using git svn, display git svn info version instead of git revision hashcode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fault_tolerance/softs/tsar_boot/version.sh

    r724 r727  
    88
    99reporev=$(svn info 2>/dev/null)
    10 if [ $? -eq 0 ];
     10if [[ $? > 0 ]];
    1111then
    12     repotype="svn"
    13     reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}')
    14 else
    15     repotype="git"
    16     reporev=$(git rev-parse HEAD)
     12    reporev=$(git svn info 2>/dev/null)
    1713fi
    1814
     15reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}')
    1916printf "%s" \
    20    "const char versionstr[]=\"$n $v ($u@$h $t) ($repotype revision $reporev)\n\r\";"
     17   "const char versionstr[]=\"$n $v ($u@$h $t) (svn revision $reporev)\n\r\";"
Note: See TracChangeset for help on using the changeset viewer.