Mercurial > mplayer.hg
annotate version.sh @ 18594:1b4fc7410e4d
Drop all system-specific version generation stuff.
author | diego |
---|---|
date | Tue, 06 Jun 2006 12:00:07 +0000 |
parents | 99a9c47040c0 |
children | c55903d85291 |
rev | line source |
---|---|
420 | 1 #!/bin/sh |
2 | |
18593 | 3 last_cvs_update=r`grep committed-rev .svn/entries | head -n 1 | cut -d '"' -f 2 2>/dev/null` |
3292
7fa3a928631a
not it looks like this 'MPlayer CVS-011203-19:47-gcc-2.95.3'
jaf
parents:
1621
diff
changeset
|
4 |
7447
a49219323787
moved to to avoid CVS-XXYYZZ- versions (if no given) - altought this comment is bigger than the patch :)
alex
parents:
5949
diff
changeset
|
5 extra="" |
7448
b464616d40b5
Should be: if test ; then - D Richard Felker III <dalias@aerifal.cx>
alex
parents:
7447
diff
changeset
|
6 if test "$1" ; then |
15650 | 7 extra="-$1" |
7447
a49219323787
moved to to avoid CVS-XXYYZZ- versions (if no given) - altought this comment is bigger than the patch :)
alex
parents:
5949
diff
changeset
|
8 fi |
18585 | 9 echo "#define VERSION \"dev-SVN-${last_cvs_update}${extra}\"" >version.h |