mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Auto-run .ui file compilation on branch change
This commit is contained in:
parent
1d338fa8c4
commit
6c630b280f
12
setup/git_post_checkout_hook.py
Executable file
12
setup/git_post_checkout_hook.py
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# vim:fileencoding=utf-8
|
||||||
|
from __future__ import (unicode_literals, division, absolute_import,
|
||||||
|
print_function)
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
|
|
||||||
|
import os, subprocess
|
||||||
|
base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
subprocess.check_call(['python', 'setup.py', 'gui'], cwd=base)
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user