aboutsummaryrefslogtreecommitdiff
path: root/src/gjl
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@aura-online.co.uk>2011-09-28 17:33:29 +0000
committerJames Le Cuirot <chewi@aura-online.co.uk>2011-09-28 17:33:29 +0000
commit019497752c8449595e337c635111b7153b177b6d (patch)
treebd8710345ed13cb3a48cd5fb46aa2d0f6aac223d /src/gjl
parentMerge patch from Kyle pan <kyle.j.pan@gmail.com> to fix bug #179853. (diff)
downloadjava-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-xsrc/gjl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gjl b/src/gjl
index dc95c8c..8e4eb9e 100755
--- a/src/gjl
+++ b/src/gjl
@@ -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)