mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			392 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			392 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env python
 | 
						|
 | 
						|
__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(['./setup.py', 'gui', '--summary'])
 |