summaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-25 01:06:48 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-25 01:06:48 +0200
commite4fa264a323182f7b59e4040898568c80a5d873e (patch)
tree9bc30cef6f794333e5cc1d047e0f23a9f6f64087 /version.sh
parent1a3fcc73d1c7a0b72680266374534f777853c3d3 (diff)
downloadmpv-e4fa264a323182f7b59e4040898568c80a5d873e.tar.bz2
mpv-e4fa264a323182f7b59e4040898568c80a5d873e.tar.xz
version.sh: update copyright year
Also remove an old mention of "Subversion" from comments and fix an error in non-git-repo version string generation (which hasn't been used for anything).
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/version.sh b/version.sh
index 6bece77305..193645b859 100755
--- a/version.sh
+++ b/version.sh
@@ -3,9 +3,9 @@
test "$1" && extra="-$1"
# Extract revision number from file used by daily tarball snapshots
-# or from the places different Subversion versions have it.
+# or from "git describe" output
git_revision=$(cat snapshot_version 2> /dev/null)
-test $git_revision || test -d .git && git_revision=`git describe --always`
+test $git_revision || test ! -d .git || git_revision=`git describe --always`
test $git_revision && git_revision=git-$git_revision
test $git_revision || git_revision=UNKNOWN
@@ -15,7 +15,7 @@ test $version || version=$git_revision
NEW_REVISION="#define VERSION \"${version}${extra}\""
OLD_REVISION=$(head -n 1 version.h 2> /dev/null)
-TITLE='#define MP_TITLE "%s "VERSION" (C) 2000-2010 MPlayer Team\n"'
+TITLE='#define MP_TITLE "%s "VERSION" (C) 2000-2011 MPlayer Team\n"'
# Update version.h only on revision changes to avoid spurious rebuilds
if test "$NEW_REVISION" != "$OLD_REVISION"; then