[chronojump/chronojump-importer] Deploys chronojump_importer.py on Windows.



commit 6650a5d7a4d8c4633dbc0d0bb8b0ebeadb4eb138
Author: Carles Pina i Estany <carles pina cat>
Date:   Sun Sep 25 23:58:14 2016 +0200

    Deploys chronojump_importer.py on Windows.

 win32/deploy_win32.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/win32/deploy_win32.py b/win32/deploy_win32.py
index c368751..ce9d3b2 100644
--- a/win32/deploy_win32.py
+++ b/win32/deploy_win32.py
@@ -95,6 +95,8 @@ MSYS_DEPS = ['sh.exe', 'rxvt.exe', 'sh.exe', 'msys-1.0.dll', 'libW11.dll']
 
 IMAGES = ['background.png', 'longomatch.png']
 
+SCRIPTS = ['chronojump_importer.py']
+
 
 class Deploy():
 
@@ -111,6 +113,7 @@ class Deploy():
         self.deploy_msys()
         self.deploy_themes()
         self.deploy_translations()
+        self.deploy_scripts()
         self.close()
 
     def close(self, message=None):
@@ -215,6 +218,13 @@ class Deploy():
         #for dll in MSYS_DEPS:
         #    shutil.copy (os.path.join(self.msys_path, 'bin', dll), self.bin_dir)
 
+    def deploy_scripts(self):
+        print 'Deploying scripts'
+
+        # Files in bin_SCRIPTS (in Makefile.in files) end up here
+        for script in SCRIPTS:
+            shutil.copy(os.path.join(self.prefix, 'bin', script), self.bin_dir)
+
 
 def main():
     usage = "usage: %prog [options]"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]