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

Last change on this file since 629 was 566, checked in by cfuguet, 11 years ago

Fixing incompatibility problem with the echo
command between linux and bsd for the version.sh
script

  • Property svn:executable set to *
File size: 240 bytes
RevLine 
[502]1#!/bin/sh
2
3n="tsarboot"
4v=$(cat version)
5t=$(date)
6u=${USER-root}
7h=$(hostname)
8svnrev=$(svn info | awk -F: '$1 == "Last Changed Rev" {print $2}')
9
[566]10printf "%s" \
11   "const char versionstr[]=\"$n $v ($u@$h $t) (svn revision $svnrev)\n\r\";"
Note: See TracBrowser for help on using the repository browser.