Last change
on this file since 16 was 2, checked in by Sanahuja Guillaume, 9 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 |
|
---|
5 | SVN_REV=$(svnversion $1)
|
---|
6 | TXT="#define SVN_REV \"svnversion of $1 is ${SVN_REV}\\n\""
|
---|
7 |
|
---|
8 |
|
---|
9 | if [ -e $2 ] && [ "$TXT" = "$(cat $2)" ] ; then
|
---|
10 | /bin/echo "$2 is up to date"
|
---|
11 | else
|
---|
12 | /bin/echo $TXT > $2
|
---|
13 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.