Changeset 688 for trunk/softs
- Timestamp:
- May 14, 2014, 4:21:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/version.sh
r566 r688 6 6 u=${USER-root} 7 7 h=$(hostname) 8 svnrev=$(svn info | awk -F: '$1 == "Last Changed Rev" {print $2}') 8 9 reporev=$(svn info 2>/dev/null) 10 if [ $? -eq 0 ] 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) 17 fi 9 18 10 19 printf "%s" \ 11 "const char versionstr[]=\"$n $v ($u@$h $t) ( svn revision $svnrev)\n\r\";"20 "const char versionstr[]=\"$n $v ($u@$h $t) ($repotype revision $reporev)\n\r\";"
Note: See TracChangeset
for help on using the changeset viewer.