summaryrefslogtreecommitdiff
path: root/Build/source/libs/harfbuzz/harfbuzz-src/write-tarball-revision.py
blob: 0b3ffee6dfd422a9a76fb56ed0ead339c4bf9814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3

import os, subprocess
from pathlib import Path

outfile = Path(
    os.getenv('MESON_DIST_ROOT')
    or os.getenv('MESON_SOURCE_ROOT')
    or Path(__file__).parent
) / '.tarball-revision'

with open(outfile, 'wb') as f:
	f.write(subprocess.check_output(['git', 'log', '--no-color', '--no-decorate', 'HEAD~..HEAD']))