| Revision 578,
458 bytes
checked in by wd, 7 years ago
(diff) |
|
Expand tabs ('\t') to eight spaces.
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id Rev
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | # try to get the version string. it will either be a standalone string or a |
|---|
| 4 | # string of the form "$Revision$". We try the latter first. |
|---|
| 5 | VSTR=`grep 'MODULE_REGISTER' $1 | sed 's/.*\"\(.*\)\".*/\1/'` |
|---|
| 6 | ESTR=`echo $VSTR | sed 's/\$Rev: \(.*\) \$$/\1/'` |
|---|
| 7 | if test -n "$ESTR" ; then |
|---|
| 8 | VSTR=$ESTR |
|---|
| 9 | fi |
|---|
| 10 | |
|---|
| 11 | # now we need to make sure the string doesn't have any spaces or tabs. Just |
|---|
| 12 | # turn them both into dashes. |
|---|
| 13 | VSTR=`echo $VSTR | tr "\t " "--"` |
|---|
| 14 | echo $VSTR |
|---|
Note: See
TracBrowser
for help on using the repository browser.