OLD | NEW |
1 #!/usr/bin/python2.4 | 1 #!/usr/bin/env python |
2 # Copyright 2009, Google Inc. | 2 # Copyright 2009, Google Inc. |
3 # All rights reserved. | 3 # All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
11 # * Redistributions in binary form must reproduce the above | 11 # * Redistributions in binary form must reproduce the above |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 # command being run or its output. | 227 # command being run or its output. |
228 ], ) | 228 ], ) |
229 builder = SCons.Script.Builder(action = action) | 229 builder = SCons.Script.Builder(action = action) |
230 env.Append(BUILDERS={'CommandOutput': builder}) | 230 env.Append(BUILDERS={'CommandOutput': builder}) |
231 | 231 |
232 # Default command line is to run the first input | 232 # Default command line is to run the first input |
233 env['COMMAND_OUTPUT_CMDLINE'] = '$SOURCE' | 233 env['COMMAND_OUTPUT_CMDLINE'] = '$SOURCE' |
234 | 234 |
235 # TODO: Add a pseudo-builder which takes an additional command line as an | 235 # TODO: Add a pseudo-builder which takes an additional command line as an |
236 # argument. | 236 # argument. |
OLD | NEW |