Both are impossible to do without checking out the git repository. The first one MIGHT be possible via the google code api, you'd have to write a custom script for that, though...
Revision page changed - FAQ
|
For getting a revision number, x264 uses this script:
Code: #!/bin/bash It's a shell script, but the commands used are obvious. This could be reworked to work on all supported platforms. The revision number itself is basically a sum of the commits. It's not quite the same as an actual revision number and it should be used alongside a git hash. When running "x264 --version" this output is provided: x264 0.116.2037 f8ebd4a The revision number is 2037 and the first 8 characters of the hash are provided.
I looked for some numbering scripts when the switch was done, but other people had suggested it and the devs didn't seem interested... I don't see how it could harm tough, would make it easier for the wiki and for the translation team....
Fwiw, I think for the translations think there are more elegant solutions than this... (pot file separate versioning maybe?)
OS: Windows 10 Pro 64bit Creators Update
CPU: AMD Phenom II X4 960 @ 3.6 GHz Graphics Card: Nvidia GeForce GTX 960 2GB GDDR5 Motherboard: Gigabyte GA-870A-USB3 AM3+ Revision RAM: HyperX 8GB Dual Channel @ 1600Mhz 09-09-2011, 11:05 AM
(09-09-2011, 06:11 AM)imk Wrote: For getting a revision number, x264 uses this script:This script assumes you are running it from within a directory controlled by git (it is meant to be checked into a repository). 09-09-2011, 09:19 PM
(09-09-2011, 11:05 AM)shuffle2 Wrote: This script assumes you are running it from within a directory controlled by git (it is meant to be checked into a repository). With x264 this script is ran at the end of ./configure. It saves the output to a header file with definitions, which then get included by a source file and used. When incorporating it with MSVS, Xcode, or whatever else, the script could be ran prior to building. If the header file is not found, then some predefined settings will be used instead. It is meant to be used only at configuration/build time, which would mean you likely already have git installed and the source cloned. For release versions of the source, it can just use predefined settings without needing git. I'm just throwing it out there as a possible solution. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)