source: flair-dev/trunk/scripts/svn_revision.sh@ 3

Last change on this file since 3 was 2, checked in by Sanahuja Guillaume, 8 years ago

initial commit flaircore

  • Property svn:executable set to *
File size: 299 bytes
Line 
1#usage svn_revision.sh dir file
2#dir: directory to get svn revision
3#file: output file to put revision
4
5SVN_REV=$(svnversion $1)
6TXT="#define SVN_REV \"svnversion of $1 is ${SVN_REV}\\n\""
7
8
9if [ -e $2 ] && [ "$TXT" = "$(cat $2)" ] ; then
10 /bin/echo "$2 is up to date"
11else
12 /bin/echo $TXT > $2
13fi
Note: See TracBrowser for help on using the repository browser.