diff options
author | James Le Cuirot <chewi@aura-online.co.uk> | 2011-09-28 17:33:29 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@aura-online.co.uk> | 2011-09-28 17:33:29 +0000 |
commit | 019497752c8449595e337c635111b7153b177b6d (patch) | |
tree | bd8710345ed13cb3a48cd5fb46aa2d0f6aac223d /src/gjl | |
parent | Merge patch from Kyle pan <kyle.j.pan@gmail.com> to fix bug #179853. (diff) | |
download | java-config-019497752c8449595e337c635111b7153b177b6d.tar.gz java-config-019497752c8449595e337c635111b7153b177b6d.tar.bz2 java-config-019497752c8449595e337c635111b7153b177b6d.zip |
[gjl] Prepend all PATH-like environment variables instead of replacing them.
svn path=/projects/java-config-2/trunk/; revision=8827
Diffstat (limited to 'src/gjl')
-rwxr-xr-x | src/gjl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -272,7 +272,10 @@ if __name__ == '__main__': print('gjl_args="%s";' % ( args )) env = get_env(pkg) for k, v in env.items(): - print('export %s="%s";' % ( k, v )) + if 'PATH' in k: + print('export %s="%s:${%s}";' % ( k, v, k )).strip(':') + else: + print('export %s="%s";' % ( k, v )) if options.jar: jar = get_jar(pkg, options.jar) |