mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a hook to rebuild ui modules after a rebase
This commit is contained in:
parent
b51bb174db
commit
c329654ebe
19
setup/git_post_rewrite_hook.py
Executable file
19
setup/git_post_rewrite_hook.py
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# vim:fileencoding=utf-8
|
||||||
|
from __future__ import (unicode_literals, division, absolute_import,
|
||||||
|
print_function)
|
||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
|
|
||||||
|
import subprocess, os, sys
|
||||||
|
|
||||||
|
base = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||||
|
os.chdir(base)
|
||||||
|
|
||||||
|
action = [x.decode('utf-8') if isinstance(x, bytes) else x for x in sys.argv[1:]][0]
|
||||||
|
|
||||||
|
if action == 'rebase':
|
||||||
|
subprocess.check_call(['python', 'setup.py', 'gui'])
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user