瀏覽代碼

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 年之前
父節點
當前提交
b7b9805e3f
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)