Mercurial > mplayer.hg
comparison version.sh @ 24332:012188d367d3
add ; at the end of the sed commands. this fixes operation under cygwin.
author | ivo |
---|---|
date | Thu, 06 Sep 2007 16:28:31 +0000 |
parents | f5edea48bb66 |
children | 273c1eaae7c8 |
comparison
equal
deleted
inserted
replaced
24331:f5edea48bb66 | 24332:012188d367d3 |
---|---|
2 | 2 |
3 test "$1" && extra="-$1" | 3 test "$1" && extra="-$1" |
4 | 4 |
5 svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` | 5 svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2` |
6 test $svn_revision || svn_revision=`grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` | 6 test $svn_revision || svn_revision=`grep revision .svn/entries 2>/dev/null | cut -d '"' -f2` |
7 test $svn_revision || svn_revision=`sed -n -e '/^dir$/{n;p;q}' .svn/entries 2>/dev/null` | 7 test $svn_revision || svn_revision=`sed -n -e '/^dir$/{n;p;q;}' .svn/entries 2>/dev/null` |
8 test $svn_revision || svn_revision=UNKNOWN | 8 test $svn_revision || svn_revision=UNKNOWN |
9 | 9 |
10 NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\"" | 10 NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}\"" |
11 OLD_REVISION=`cat version.h 2> /dev/null` | 11 OLD_REVISION=`cat version.h 2> /dev/null` |
12 TITLE="#define MP_TITLE \"MPlayer dev-SVN-r${svn_revision}${extra} (C) 2000-2007 MPlayer Team\"" | 12 TITLE="#define MP_TITLE \"MPlayer dev-SVN-r${svn_revision}${extra} (C) 2000-2007 MPlayer Team\"" |