summaryrefslogtreecommitdiff
path: root/distribution/lib/DistUtils.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2014-03-19 12:45:55 -0700
committerMark Spruiell <mes@zeroc.com>2014-03-19 12:45:55 -0700
commitcdcffbcc3c3c052afdeb772ff0167e7a90b525bb (patch)
tree4f16ee41ef7d33394c44e9db81e4d6cd89908250 /distribution/lib/DistUtils.py
parentfixing testicedist.py for 5487 (diff)
downloadice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.bz2
ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.xz
ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.zip
merging javascript branch
Diffstat (limited to 'distribution/lib/DistUtils.py')
-rw-r--r--distribution/lib/DistUtils.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/distribution/lib/DistUtils.py b/distribution/lib/DistUtils.py
index 4c6f6fac26e..c5e7cd7a17e 100644
--- a/distribution/lib/DistUtils.py
+++ b/distribution/lib/DistUtils.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# **********************************************************************
#
-# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
@@ -209,10 +209,8 @@ def fixMakefileForFile(path):
(dir,file) = os.path.split(path)
(base,ext) = os.path.splitext(file)
# File the makefile file from the same directory as the file.
- if os.path.exists(os.path.join(dir, "Makefile")):
- fixMakefile(os.path.join(dir, "Makefile"), base, ext)
- if os.path.exists(os.path.join(dir, "Makefile.mak")):
- fixMakefile(os.path.join(dir, "Makefile.mak"), base, ext)
+ for f in glob.glob(os.path.join(dir, "Makefile*")):
+ fixMakefile(f, base, ext)
#
# Comment out rules in a Makefile.
@@ -1141,7 +1139,8 @@ def getPlatform(thirdParties):
if sysname == "Linux":
p = subprocess.Popen("lsb_release -i", shell = True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
if(p.wait() != 0):
- os.exists(1)
+ print("lsb_release failed:\n" + p.stdout.read().strip())
+ sys.exit(1)
distribution = re.sub("Distributor ID:", "", p.stdout.readline().decode('UTF-8')).strip()
if distribution.find("RedHat") != -1:
languages[sysname].remove("cs")