2020-06-19 08:02:46 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import os, subprocess
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
outfile = Path(
|
2020-07-04 11:42:55 +02:00
|
|
|
os.getenv ('MESON_DIST_ROOT')
|
|
|
|
or os.getenv ('MESON_SOURCE_ROOT')
|
2020-06-19 08:02:46 +02:00
|
|
|
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']))
|