Changeset 727 for branches/fault_tolerance/softs/tsar_boot/version.sh
- Timestamp:
- Jun 27, 2014, 4:48:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/softs/tsar_boot/version.sh
r724 r727 8 8 9 9 reporev=$(svn info 2>/dev/null) 10 if [ $? -eq 0];10 if [[ $? > 0 ]]; 11 11 then 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) 17 13 fi 18 14 15 reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}') 19 16 printf "%s" \ 20 "const char versionstr[]=\"$n $v ($u@$h $t) ( $repotyperevision $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.