aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2011-10-04 06:00:18 +0000
committerRalph Sennhauser <sera@gentoo.org>2011-10-04 06:00:18 +0000
commitc09296c90b954892a2eabf15c13b559d876ffe81 (patch)
tree8e42f56a24b648b1f3d416944d6c60d1e30e252c
parentAdd missing options to man page (diff)
downloadjava-config-c09296c90b954892a2eabf15c13b559d876ffe81.tar.gz
java-config-c09296c90b954892a2eabf15c13b559d876ffe81.tar.bz2
java-config-c09296c90b954892a2eabf15c13b559d876ffe81.zip
Merge trunk
svn path=/projects/java-config-2/branches/generation3-support/; revision=8842
-rwxr-xr-xsrc/gjl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gjl b/src/gjl
index ea636af..8bc96d4 100755
--- a/src/gjl
+++ b/src/gjl
@@ -275,7 +275,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}"; %s=${%s%%:};' % ( k, v, k, k, k )).strip(':')
+ else:
+ print('export %s="%s";' % ( k, v ))
if options.jar:
jar = get_jar(pkg, options.jar)