summaryrefslogtreecommitdiff
path: root/cpp/newmakebindist.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/newmakebindist.py')
-rwxr-xr-xcpp/newmakebindist.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/newmakebindist.py b/cpp/newmakebindist.py
index a5a4086ad60..d6493e3b5c0 100755
--- a/cpp/newmakebindist.py
+++ b/cpp/newmakebindist.py
@@ -355,7 +355,12 @@ def getDBfiles(dbLocation):
fileList = ['lib/db.jar']
fileList.extend(lines)
- pipe_stdin, pipe_stdout = os.popen2('find lib -name "*' + getPlatformLibExtension() + '" -type f')
+ findCmd = ''
+ if getPlatform() == 'solaris':
+ findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type f -maxdepth 1'
+ else:
+ findCmd = 'find lib -name "*' + getPlatformLibExtension() + '" -type f'
+ pipe_stdin, pipe_stdout = os.popen2(findCmd)
lines = pipe_stdout.readlines()
pipe_stdin.close()
pipe_stdout.close()