Last change
on this file since 503 was
502,
checked in by bouyer, 11 years ago
|
Print a version string at execution, dynamically computed at link time.
The version string includes: content of ./version, builder and date,
and svn revision.
This helps to know which version we're really executing ...
|
-
Property svn:executable set to
*
|
File size:
232 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | n="tsarboot" |
---|
4 | v=$(cat version) |
---|
5 | t=$(date) |
---|
6 | u=${USER-root} |
---|
7 | h=$(hostname) |
---|
8 | svnrev=$(svn info | awk -F: '$1 == "Last Changed Rev" {print $2}') |
---|
9 | |
---|
10 | echo 'const char versionstr[]="'$n $v "($u@$h $t)" "(svn revision $svnrev)"'\n\r";' |
---|
Note: See
TracBrowser
for help on using the repository browser.