For cross-platform build take the linux version of printenv.py

This commit is contained in:
Dmitry Trofimov
2016-09-29 16:41:28 +02:00
parent ffb30fba55
commit 92ea85e4f7
2 changed files with 18 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env python
# Dumps environment variables into specified file.
# Format: zero-separated "name=value" pairs in platform encoding.
import os
import sys
if len(sys.argv) != 2:
raise Exception('Exactly one argument expected')
f = open(sys.argv[1], 'wb')
try:
for key, value in os.environ.items():
s = '%s=%s\0' % (key, value)
f.write(s.encode('utf-8'))
finally:
f.close()
@@ -101,7 +101,6 @@ class CrossPlatformDistributionBuilder {
}
zipfileset(dir: "$macDistPath/bin", prefix: "bin", filemode: "775") {
include(name: "restarter*")
include(name: "*.py")
}
zipfileset(dir: "$macDistPath/bin", prefix: "bin/mac", filemode: "775") {
include(name: "fsnotifier*")