Last change
on this file since 727 was
727,
checked in by cfuguet, 10 years ago
|
tsar_boot: version.sh
- When using git svn, display git svn info version instead
of git revision hashcode
|
-
Property svn:executable set to
*
|
File size:
347 bytes
|
Rev | Line | |
---|
[724] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | n="tsarboot" |
---|
| 4 | v=$(cat VERSION) |
---|
| 5 | t=$(date) |
---|
| 6 | u=${USER-root} |
---|
| 7 | h=$(hostname) |
---|
| 8 | |
---|
| 9 | reporev=$(svn info 2>/dev/null) |
---|
[727] | 10 | if [[ $? > 0 ]]; |
---|
[724] | 11 | then |
---|
[727] | 12 | reporev=$(git svn info 2>/dev/null) |
---|
[724] | 13 | fi |
---|
| 14 | |
---|
[727] | 15 | reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}') |
---|
[724] | 16 | printf "%s" \ |
---|
[727] | 17 | "const char versionstr[]=\"$n $v ($u@$h $t) (svn revision $reporev)\n\r\";" |
---|
Note: See
TracBrowser
for help on using the repository browser.