Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
MPlayer
> MPlayer-svn_version.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File MPlayer-svn_version.patch of Package MPlayer
--- version.sh.orig 2011-02-28 21:39:19.000000000 +0100 +++ version.sh 2011-02-28 21:41:05.000000000 +0100 @@ -8,16 +8,11 @@ if test -z $version ; then # Extract revision number from file used by daily tarball snapshots # or from the places different Subversion versions have it. -svn_revision=$(cat snapshot_version 2> /dev/null) -test $svn_revision || svn_revision=$(LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2) -test $svn_revision || svn_revision=$(grep revision .svn/entries 2>/dev/null | cut -d '"' -f2) -test $svn_revision || svn_revision=$(sed -n -e '/^dir$/{n;p;q;}' .svn/entries 2>/dev/null) -test $svn_revision && svn_revision=SVN-r$svn_revision -test $svn_revision || svn_revision=UNKNOWN -version=$svn_revision +svn_revision='@@SVN_REVISION@@' +suse_version='@@SUSE_VERSION@@' fi -NEW_REVISION="#define VERSION \"${version}${extra}\"" +NEW_REVISION="#define VERSION \"dev-SVN-r${svn_revision}${extra}-${suse_version}\"" OLD_REVISION=$(head -n 1 version.h 2> /dev/null) TITLE='#define MP_TITLE "%s "VERSION" (C) 2000-2011 MPlayer Team\n"'