source: branches/ithildin-1.1/tools/modver.sh @ 578

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.
5VSTR=`grep 'MODULE_REGISTER' $1 | sed 's/.*\"\(.*\)\".*/\1/'`
6ESTR=`echo $VSTR | sed 's/\$Rev: \(.*\) \$$/\1/'`
7if test -n "$ESTR" ; then
8    VSTR=$ESTR
9fi
10
11# now we need to make sure the string doesn't have any spaces or tabs.  Just
12# turn them both into dashes.
13VSTR=`echo $VSTR | tr "\t " "--"`
14echo $VSTR
Note: See TracBrowser for help on using the repository browser.