File: meson_post_install.py

package info (click to toggle)
five-or-more 1%3A48.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,164 kB
  • sloc: xml: 66; sh: 7; python: 7; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3

import os
import subprocess

sourcedir = os.environ['MESON_SOURCE_ROOT']
hooksdir = os.path.join(sourcedir, '.git', 'hooks')
precommit = os.path.join(hooksdir, 'pre-commit')
if os.path.lexists(precommit):
    os.remove(precommit)
# os.symlink('../../../libgnome-games-support/style-checker', precommit)