mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
For cross-platform build take the linux version of printenv.py
This commit is contained in:
@@ -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*")
|
||||
|
||||
Reference in New Issue
Block a user