|
Last change
on this file since 11164 was
11164,
checked in by BrainSlayer, 4 years ago
|
|
required
|
-
Property svn:executable set to
*
|
|
File size:
426 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | if [ ! -d ".svn/" ] |
|---|
| 4 | then |
|---|
| 5 | echo "0" |
|---|
| 6 | exit ; |
|---|
| 7 | fi |
|---|
| 8 | |
|---|
| 9 | REVISION="`svnversion 2> /dev/null | sed 's/[^0-9]*//g'`" |
|---|
| 10 | |
|---|
| 11 | if [ x$REVISION = "x" ] |
|---|
| 12 | then |
|---|
| 13 | REVISION="`svn info 2> /dev/null | grep -i revision | sed 's/[^0-9]*//g'`" |
|---|
| 14 | fi |
|---|
| 15 | |
|---|
| 16 | if [ x$REVISION = "x" -a -e ".svn/entries" ] |
|---|
| 17 | then |
|---|
| 18 | REVISION="`cat .svn/entries | grep -i revision | head -n 1 | sed 's/[^0-9]*//g'`" |
|---|
| 19 | fi |
|---|
| 20 | |
|---|
| 21 | if [ x$REVISION = "x" ] |
|---|
| 22 | then |
|---|
| 23 | REVISION="-1" |
|---|
| 24 | fi |
|---|
| 25 | |
|---|
| 26 | echo $REVISION |
|---|
Note: See
TracBrowser
for help on using the repository browser.