summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-28 23:59:27 +0200
committerwm4 <wm4@nowhere>2012-07-29 00:04:17 +0200
commit46b218ca346478d604061c8989191ad337124a30 (patch)
treefceef2d7899e7ce80d2707c40f7f6759db3658de
parent806461c5b645068752292cf19c273dae2ebd9e19 (diff)
downloadmpv-46b218ca346478d604061c8989191ad337124a30.tar.bz2
mpv-46b218ca346478d604061c8989191ad337124a30.tar.xz
Change version string
Change the "main" name from "mplayer2" to "mplayer". Note that upstream mplayer2 uses "MPlayer2", and mplayer uses "MPlayer", so it's unambiguous. The version.sh script used to put the latest tag into the version script. The intention was to add a new tag on each release, but this hasn't been done in over a year, making the tag absolutely pointless. Remove it. Now "git-SHORTHASH" is used. Remove the string "MPlayer & mplayer2 teams" after the copyright date, because that sounded silly.
-rw-r--r--mpcommon.c2
-rw-r--r--mplayer.c3
-rwxr-xr-xversion.sh4
3 files changed, 4 insertions, 5 deletions
diff --git a/mpcommon.c b/mpcommon.c
index 95c21ead65..e3e6c4ac81 100644
--- a/mpcommon.c
+++ b/mpcommon.c
@@ -18,4 +18,4 @@
#include "version.h"
-const char *mplayer_version = "mplayer2 " VERSION;
+const char *mplayer_version = "mplayer " VERSION;
diff --git a/mplayer.c b/mplayer.c
index 33a09f7a3b..edf7d85be8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3818,8 +3818,7 @@ static int select_audio(demuxer_t *demuxer, int audio_id, char **audio_lang)
static void print_version(void)
{
- mp_msg(MSGT_CPLAYER, MSGL_INFO,
- "%s (C) 2000-2012 MPlayer & mplayer2 teams\n", mplayer_version);
+ mp_msg(MSGT_CPLAYER, MSGL_INFO, "%s (C) 2000-2012\n", mplayer_version);
/* Test for CPU capabilities (and corresponding OS support) for optimizing */
GetCpuCaps(&gCpuCaps);
diff --git a/version.sh b/version.sh
index 73905f05fc..3b0c319c83 100755
--- a/version.sh
+++ b/version.sh
@@ -5,13 +5,13 @@ test "$1" && extra="-$1"
# Extract revision number from file used by daily tarball snapshots
# or from "git describe" output
git_revision=$(cat snapshot_version 2> /dev/null)
-test $git_revision || test ! -d .git || git_revision=`git describe --match "v[0-9]*" --always`
+test $git_revision || test ! -d .git || git_revision=`git rev-parse --short HEAD`
git_revision=$(expr "$git_revision" : v*'\(.*\)')
test $git_revision || git_revision=UNKNOWN
# releases extract the version number from the VERSION file
version=$(cat VERSION 2> /dev/null)
-test $version || version=$git_revision
+test $version || version=git-$git_revision
NEW_REVISION="#define VERSION \"${version}${extra}\""
OLD_REVISION=$(head -n 1 version.h 2> /dev/null)