| Revision 578,
570 bytes
checked in by wd, 7 years ago
(diff) |
|
Expand tabs ('\t') to eight spaces.
|
-
Property svn:keywords set to
Id Rev
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # |
|---|
| 3 | # $Rev$ |
|---|
| 4 | |
|---|
| 5 | SVN=`which svn` |
|---|
| 6 | |
|---|
| 7 | rev="" |
|---|
| 8 | # if subversion is available and we have a .svn directory get the repo |
|---|
| 9 | # version directly from it |
|---|
| 10 | if test "$SVN" != "" -a -d ".svn" ; then |
|---|
| 11 | rev=`$SVN info . | grep '^Revision' | sed 's/Revision: //'` |
|---|
| 12 | fi |
|---|
| 13 | |
|---|
| 14 | if test "$rev" = "" ; then |
|---|
| 15 | rev=`cat tools/repover.sh | grep '^# \$Rev:' | \ |
|---|
| 16 | sed 's/^# \$Rev: \(.*\) \$$/\1/'` |
|---|
| 17 | fi |
|---|
| 18 | if test "$rev" = "" ; then |
|---|
| 19 | rev=0 |
|---|
| 20 | else |
|---|
| 21 | cat tools/repover.sh | sed "s/Rev: .*\\\$$/Rev: $rev \\\$/" > repover.tmp |
|---|
| 22 | mv repover.tmp tools/repover.sh |
|---|
| 23 | fi |
|---|
| 24 | echo $rev |
|---|
| 25 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.