Commits

abudden committed 14400ba

Include packaging of standard libraries.

Comments (0)

Files changed (2)

dist/make_taghighlight_release.py

 
     return version_file, clean
 
-def MakeZipFile(r):
+def MakeMainRelease(r):
     # List of paths to include (either explicit files or paths to search)
     paths = {
             '.py': ['plugin/TagHighlight',__file__],
             '.txt': ['plugin/TagHighlight/data','plugin/TagHighlight/instructions.txt', 'doc/TagHighlight.txt'],
             '.spec': ['plugin/TagHighlight/TagHighlight.spec'],
             }
+    filename = 'taghighlight_r{0}.zip'.format(r)
+    MakeZipFile(filename, paths)
 
+def MakeZipFile(filename, paths):
     # Create the zipfile
-    zipf = zipfile.ZipFile(os.path.join(vimfiles_dir,'dist','taghighlight_r{0}.zip'.format(r)), 'w')
+    zipf = zipfile.ZipFile(os.path.join(vimfiles_dir, 'dist', filename), 'w')
 
     # Collect the specified paths into a zip file
     for ext, pathlist in paths.items():
     # Close the zipfile
     zipf.close()
 
+def MakeLibraryPackage(r):
+    paths = {
+            '.txt': ['plugin/TagHighlight/standard_libraries'],
+            '.taghl': ['plugin/TagHighlight/standard_libraries'],
+            }
+    filename = 'taghighlight_standard_libraries_r{0}.zip'.format(r)
+    MakeZipFile(filename, paths)
+
 def MakeCompiled(pyexe, pyinstaller_path, zipfilename, platform_dir):
     initial_dir = os.getcwd()
     os.chdir(os.path.join(vimfiles_dir, 'plugin/TagHighlight'))
 
     if clean:
         new_release = UpdateReleaseVersion()
-        MakeZipFile(new_release)
+        MakeMainRelease(new_release)
         os.remove(version_file)
         MakeWin32Compiled(new_release)
         MakeLinuxCompiled(new_release)
+        MakeLibraryPackage(new_release)
         CheckInChanges(new_release)
         PublishReleaseVersion()
     else:
 ==============================================================================
 7. TagHighlight History                *TagHighlight-history*               {{{1
 
+2.0.24: 12th August 2011   : Release script improvements to include packaging
+                             of standard libraries.
+
 2.0.23: 12th August 2011   : Improvements to variable passing when options
                              have been set to 'True' rather than 1.