diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-15 12:03:51 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-15 12:03:51 (GMT) |
commit | f36ff530132ecfe7941f80d2d6e5f03f75decf41 (patch) | |
tree | 6934b9a121c17c02f89c9886d77dd877feb56eee /src/engine/SCons/Tool/hpc++.py | |
parent | 3ab7670a45179b7a09eabc219842f6c224ad35da (diff) | |
download | SCons-f36ff530132ecfe7941f80d2d6e5f03f75decf41.zip SCons-f36ff530132ecfe7941f80d2d6e5f03f75decf41.tar.gz SCons-f36ff530132ecfe7941f80d2d6e5f03f75decf41.tar.bz2 |
Correct __COPYRIGHT__ and __revision__ lines in files. Add missing copyright notices. Fix some portability problems with new Tool files.
Diffstat (limited to 'src/engine/SCons/Tool/hpc++.py')
-rw-r--r-- | src/engine/SCons/Tool/hpc++.py | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/hpc++.py b/src/engine/SCons/Tool/hpc++.py index b654df8..5b650d6 100644 --- a/src/engine/SCons/Tool/hpc++.py +++ b/src/engine/SCons/Tool/hpc++.py @@ -7,6 +7,30 @@ It will usually be imported through the generic SCons.Tool.Tool() selection method. """ + +# +# __COPYRIGHT__ +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# + __revision__ = "" import os.path @@ -17,7 +41,13 @@ cplusplus = __import__('c++', globals(), locals(), []) acc = None # search for the acc compiler and linker front end -for dir in os.listdir('/opt'): + +try: + dirs = os.listdir('/opt') +except: + dirs = [] + +for dir in dirs: cc = '/opt/' + dir + '/bin/aCC' if os.path.exists(cc): acc = cc @@ -29,7 +59,7 @@ def generate(env): cplusplus.generate(env) if acc: - env['CXX'] = acc + env['CXX'] = acc or 'aCC' # determine version of aCC line = os.popen(acc + ' -V 2>&1').readline().rstrip() if string.find(line, 'aCC: HP ANSI C++') == 0: |