source: trunk/softs/tsar_boot/version.sh @ 994

Last change on this file since 994 was 815, checked in by cfuguet, 10 years ago

tsar_boot: solve an incompatibility problem in the version.sh script

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