Last change
on this file since 720 was
702,
checked in by cfuguet, 10 years ago
|
tsar_boot:
- Fixing bug introduced in commit r688. Missing double
quotes while calling echo command. The SVN revision was
not correctly taken because of this.
- Renaming version in VERSION. Convention: Text files
name is in capital letters.
|
-
Property svn:executable set to
*
|
File size:
394 bytes
|
Rev | Line | |
---|
[502] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | n="tsarboot" |
---|
[702] | 4 | v=$(cat VERSION) |
---|
[502] | 5 | t=$(date) |
---|
| 6 | u=${USER-root} |
---|
| 7 | h=$(hostname) |
---|
| 8 | |
---|
[688] | 9 | reporev=$(svn info 2>/dev/null) |
---|
[702] | 10 | if [ $? -eq 0 ]; |
---|
[688] | 11 | then |
---|
| 12 | repotype="svn" |
---|
[702] | 13 | reporev=$(echo "$reporev" | awk -F: '$1 == "Last Changed Rev" {print $2}') |
---|
[688] | 14 | else |
---|
| 15 | repotype="git" |
---|
| 16 | reporev=$(git rev-parse HEAD) |
---|
| 17 | fi |
---|
| 18 | |
---|
[566] | 19 | printf "%s" \ |
---|
[688] | 20 | "const char versionstr[]=\"$n $v ($u@$h $t) ($repotype revision $reporev)\n\r\";" |
---|
Note: See
TracBrowser
for help on using the repository browser.