summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-19 19:15:39 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-02-19 19:15:39 +0200
commit6b23e71779071950af8fa98dbf65394fdb12429d (patch)
treee4a0ebf4dba878b9c0967676ef1029113a993249
parent2e4afb70ea95c26efaaaa7a1fe3abd8f84ada9b8 (diff)
downloadmplayer2-build-6b23e71779071950af8fa98dbf65394fdb12429d.tar.gz
mplayer2-build-6b23e71779071950af8fa98dbf65394fdb12429d.tar.bz2
mplayer2-build-6b23e71779071950af8fa98dbf65394fdb12429d.zip
script/export: update version number generation
Update version number generation to match what the player itself uses. Drop "-snapshot" suffix.
-rwxr-xr-xscript/export3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/export b/script/export
index 2f5f3a4..e6ac62b 100755
--- a/script/export
+++ b/script/export
@@ -30,7 +30,8 @@ def export(revision, outdir, mt):
swscale_rev = subrev(ffmpeg_rev, "libswscale")
os.chdir('..')
os.chdir('mplayer')
- version = run_command('git describe --always ' + mplayer_rev).strip() + '-snapshot'
+ version = run_command('git describe --match v[0-9]* --always ' +
+ mplayer_rev).strip()
os.chdir('..')
write('.', '.', revision, outdir)
os.putenv('PYTHONDONTWRITEBYTECODE', '1')