Browse Source

include updated VERSION when generating the source tarball

This ensures that the commit hash is included in the compiled version
when a source tarball is generated for a development snapshot.
Ashish Kulkarni 11 years ago
parent
commit
b7b9805e3f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/build.py

+ 2 - 0
scripts/build.py

@@ -773,8 +773,10 @@ def build_source_tarball(config, basedir):
     shell('git clean -fdx')
     shell('git reset --hard HEAD')
     shell('git submodule update')
+    open('VERSION', 'w').write(version)
     with tarfile.open('wkhtmltox-%s.tar.bz2' % version, 'w:bz2') as tar:
         tar.add('.', 'wkhtmltox-%s/' % version, filter=_filter_tar)
+    shell('git reset --hard HEAD')
 
 # --------------------------------------------------------------- MSVC (2008-2013)