aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'java-config')
-rwxr-xr-xjava-config14
1 files changed, 4 insertions, 10 deletions
diff --git a/java-config b/java-config
index 98ada8c..53a1164 100755
--- a/java-config
+++ b/java-config
@@ -1,16 +1,11 @@
#!/usr/bin/python -E
# -*- coding: UTF-8 -*-
-# Copyright 2004 Gentoo Foundation
+# Copyright 2004-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-# Author: Saleem Abdulrasool <compnerd@gentoo.org>
-# Maintainer: Gentoo Java Herd <java@gentoo.org>
-# Java Subsystem Configuration Utility for Gentoo Linux
-
-__version__ = '$Revision: 2.0$'[11:-1]
-
+from java_config import version
from java_config.OutputFormatter import OutputFormatter
from java_config.EnvironmentManager import EnvironmentManager
from java_config.Errors import *
@@ -24,9 +19,8 @@ from string import join
from optparse import OptionParser, make_option
-
def version(option, opt, value, parser):
- printer._print("%H%BJava Configuration Utility %GVersion " + str(__version__))
+ printer._print("%H%BJava Configuration Utility %GVersion " + str(version))
raise SystemExit()
def nocolor(option, opt, value, parser):
@@ -245,7 +239,7 @@ if __name__ == '__main__':
manager = EnvironmentManager()
usage = "java-config [options]\n\n"
- usage += "Java Configuration Utility Version " + str(__version__) + "\n"
+ usage += "Java Configuration Utility Version " + str(version) + "\n"
usage += "Copyright 2004-2005 Gentoo Foundation\n"
usage += "Distributed under the terms of the GNU General Public License v2\n"
usage += "Please contact the Gentoo Java Herd <java@gentoo.org> with problems."