x264 の revision 取得

とりあえず、最新版を git で取得して実際に動かしてみます。

% ./x264
x264 core:59 r859 ce13bb6
Syntax: x264 [options] -o outfile infile [widthxheight]

revision を取得する処理があるようです。
ヘッダ辺りで定義でもしているのかと、試しに grep を実行。

% grep git * | grep version
version.sh:git-rev-list HEAD | sort > config.git-hash
version.sh:LOCALVER=`wc -l config.git-hash | awk '{print $1}'`
version.sh:    VER=`git-rev-list origin/master | sort | join config.git-hash - | wc -l | awk '{print $1}'`
version.sh:    elif git-status | grep -q "modified:" ; then
version.sh:    VER="$VER $(git-rev-list HEAD -n 1 | head -c 7)"
version.sh:rm -f config.git-hash

なるほど…

% git-rev-list HEAD | wc
    859     859   35219

考えてみれば commit の数を数えれば revision 番号になるのは当たり前の事ですよね。
また自分は無駄な事を… ○rz