aboutsummaryrefslogtreecommitdiffhomepage
path: root/version.sh
Commit message (Collapse)AuthorAge
* build: move copyright statement to a shared locationGravatar wm42018-01-01
| | | | | | | Now macosx_menubar.m and mpv.rc (win32) use the same copyright string. (This is a bit roundabout, because mpv.rc can't use C constants. Also the C code wants to avoid rebuilding real source files if only version.h changed, so only version.c includes version.h.)
* version.sh: append -dirty if the working tree contains modificationsGravatar Niklas Haas2017-06-16
| | | | This allows us to detect users who run mpv with custom patches.
* Release 0.25.0Gravatar Martin Herkt2017-04-23
| | | | Also update release policy documentation and version extraction.
* build: don't make version.sh create version.h by defaultGravatar wm42015-07-14
| | | | | You could actually run version.sh, and then the waf build system could accidentally pick up the generated (and most likely stale) version.h.
* build: fix version.h creationGravatar Stefano Pigozzi2015-07-12
| | | | | Previous code did not retrigger a relink when version.h changed since it didn't use a waf task.
* build: always regenerate version hashGravatar wm42015-06-30
| | | | | | | | | Until now, it only used the hash from the previous configure run, instead of trying to get the latest hash. The "old" build system did this correctly - we just have to use the existing logic in version.sh. Since waf supports separate build dirs, extend version.sh with an argument for setting the path of version.h.
* TOOLS: shellcheck: quote variable expansionsGravatar Ben Boeckel2014-09-16
|
* TOOLS, version.sh: shellcheck: replace `cmd` with $(cmd)Gravatar Ben Boeckel2014-09-16
| | | | Signed-off-by: wm4 <wm4@nowhere>
* version.sh: don't use git tags for version output (again)Gravatar wm42013-10-14
| | | | | | | | | | | | | | | With the way I've been doing releases in the release/0.1 branch, this proved completely useless. You need to write the VERSION file anyway, and since we use github's automatically generated tarballs (via its release system), the VERSION file needs to be in the git revision of a release anyway. git master on the other hand displayed the v0.1.0 tag, because the tag is within the master branch. This essentially reverts commit b27f65a. Now just print the contents of the VERSION file if it exists, and likewise, we append the git revision if it exists. (Do that even if VERSION exists, because this way we can tell if someone is using the release branch at an in-between point where no new release has been made yet.)
* version.sh: add --print option, which prints version to stdoutGravatar wm42013-08-09
| | | | Might be helpful when creating a tarball.
* version.sh: integrate the release tag in outputGravatar wm42013-08-09
| | | | | | | | | | | | This is basically reconstructed from 46b218c. Since we now have proper release tags, we want this again. Add --tags to the git describe call, because the github release system creates light-weight tags only, and we're too lazy to create annitated tags (or is that bad practice?). Add --long, so that the git commit hash is part of the output even if the tag matches.
* version.sh: fix git rev. generation (.git is not always a directory)Gravatar wm42013-02-06
| | | | | | | | | It appears git submodule handling recently changed, changing the .git directory to a regular file containing submodule specific information. This means that version.sh would generate "#define VERSION "git-UNKNOWN"" if the checkout is a submodule, because it explicitly checks for a .git directory using test -d. Change it to -e so that this case is handled correctly.
* build: identify the build time of the binary in the versioning outputGravatar Stephen Hutchinson2012-12-03
| | | | | | | | | | Based on a patch by qyot27. Add export LC_ALL=C on top of version.sh to make the output locale independent. Note that the build time will not be updated on every "make" invocation, but only when the git revision is updated. This is a good thing, as repeated make invocations should not rebuild the binary. (This would break "sudo make install" too.)
* Change version stringGravatar wm42012-07-29
| | | | | | | | | | | | | | 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.
* Use "mplayer2" in version string, not "MPlayer2"Gravatar wm42012-03-14
| | | | | | | | The name "MPlayer2" isn't used anywhere. It's either "MPlayer" or "mplayer2". Make it more consistent by using "mplayer2" instead. Note that the version string passed as network user-agent changes from "MPlayer" to "mplayer2" as well.
* Update copyright yearGravatar Uoti Urpala2012-01-28
|
* build: change version number generationGravatar Uoti Urpala2011-02-19
| | | | | | | Force Makefile to always run version.sh to potentially regenerate version.h. Drop compiler version and 'git-' prefix from version number. Match only git tags starting 'v'+number when generating version number; leave the 'v' out from the result.
* version.sh: update copyright yearGravatar Uoti Urpala2011-01-25
| | | | | | 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).
* Merge svn changes up to r30419Gravatar Uoti Urpala2010-01-25
|\
| * new year in version stringGravatar Gabrov2010-01-24
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30417 b3059339-0415-0410-9bf9-f77b7e298cf2
* | build: Generate version numbers for gitGravatar Uoti Urpala2009-11-23
|/ | | | | | | | | | Update the version.sh script for git so it'll generate version numbers more useful than "UNKNOWN". At the moment it only generates the short SHA1 name, but adding a tag as a starting point should allow more useful output. Rather than update the Makefile logic that tried to guess whether the svn revision had changed since the last version.h update, just run the version.sh script from configure so the version is updated at least at that time.
* Avoid spurious rebuilds on svn up. The check to find out if the header fileGravatar cehoyos2009-04-04
| | | | | | | changed compared two lines to one, which would result in false positive updates. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29140 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for extracting the release version number from a VERSION file.Gravatar diego2009-03-05
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28830 b3059339-0415-0410-9bf9-f77b7e298cf2
* Read revision string from the file snapshot_version if available.Gravatar diego2009-02-24
| | | | | | | This will be used by daily snapshots without Subversion metadata. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28728 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Use $() instead of ``, the former can be nested more easily.Gravatar diego2009-02-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28726 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use single quotes to avoid escaping double quotes in a string.Gravatar diego2009-01-29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28385 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use cat instead of echo to generate version.h.Gravatar diego2009-01-29
| | | | | | | Portably echoing backslashes is near impossible. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28384 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove superfluous backslash escapes that caused unintended escapes.Gravatar diego2009-01-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28383 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not duplicate VERSION string.Gravatar diego2009-01-26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28376 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop dev- prefix from printed version number, just SVN-rXXXXX is enough.Gravatar diego2009-01-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28367 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize print_version().Gravatar diego2009-01-25
| | | | | | | Print CPU information in verbose mode instead of by default. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28360 b3059339-0415-0410-9bf9-f77b7e298cf2
* TRIVIAL, Extend the copyright line to 2009. Patch by andrew .david .45 AT gmail.Gravatar reynaldo2009-01-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28287 b3059339-0415-0410-9bf9-f77b7e298cf2
* Happy New Year!Gravatar zuxy2008-01-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25583 b3059339-0415-0410-9bf9-f77b7e298cf2
* add ; at the end of the sed commands. this fixes operation under cygwin.Gravatar ivo2007-09-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24352 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove cut&paste from ffmpeg mistake. cd "$1" does not make any sense here,Gravatar ivo2007-09-06
| | | | | | | as $1 is (g)cc's version number git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24351 b3059339-0415-0410-9bf9-f77b7e298cf2
* Port changes for older Subversion releases from FFmpeg.Gravatar diego2007-06-19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23581 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update copyright year.Gravatar diego2007-01-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21946 b3059339-0415-0410-9bf9-f77b7e298cf2
* avoid code duplication.Gravatar vayne2006-12-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21780 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove copy and paste error from FFmpeg sync, MPlayer does not supportGravatar diego2006-09-24
| | | | | | | out-of-tree build directories. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19969 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg sync: Fall back on grep if svn client is not installed.Gravatar diego2006-09-05
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19702 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use LC_ALL instead of LANG since the former overrides the latter.Gravatar diego2006-07-29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19255 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cope with localized Subversion clients.Gravatar diego2006-07-29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19252 b3059339-0415-0410-9bf9-f77b7e298cf2
* Produce correct version string even when not run in a Subversion working copy.Gravatar diego2006-06-23
| | | | | | | ported from FFmpeg git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18794 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adapt FFmpeg version.sh that only recreates version.h if its content changed.Gravatar diego2006-06-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18787 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplifyGravatar diego2006-06-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18762 b3059339-0415-0410-9bf9-f77b7e298cf2
* avoid usage of head -1/head -n 1 and use sed 1q insteadGravatar ivo2006-06-07
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18625 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmeticsGravatar diego2006-06-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18596 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop all system-specific version generation stuff.Gravatar diego2006-06-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18595 b3059339-0415-0410-9bf9-f77b7e298cf2
* Put SVN revision in the version stringGravatar rathann2006-06-06
| | | | | | | Note: somebody please port this to *BSD|Darwin git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18594 b3059339-0415-0410-9bf9-f77b7e298cf2
* cvs2svnGravatar rtogni2006-06-05
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18586 b3059339-0415-0410-9bf9-f77b7e298cf2