98 |
--help|-h|-?: Prints this help. |
--help|-h|-?: Prints this help. |
99 |
--version: Shows the version of this utility. |
--version: Shows the version of this utility. |
100 |
--use-old: If an implementation is already set, use that one. |
--use-old: If an implementation is already set, use that one. |
|
--prefix=<val>: Set the source prefix (default: /etc) |
|
101 |
|
|
102 |
Usage: ${0##*/} --get-implementation |
Usage: ${0##*/} --get-implementation |
103 |
Print the current implementaion |
Print the current implementaion |
104 |
|
|
105 |
This utility switches between Java implementations. There ${IS_ARE} |
This utility switches between Java implementations. There ${IS_ARE} |
106 |
$(echo ${AVAIL_IMPLEMS} | wc -w) available implementation${IMPLEM_PLURAL}: ${AVAIL_IMPLEMS} |
$(echo ${AVAIL_IMPLEMS} | wc -w) available implementation${IMPLEM_PLURAL}: ${AVAIL_IMPLEMS} |
107 |
|
|
108 |
Examples: |
Examples: |
109 |
${0##*/} java-1.6-sun |
${0##*/} java6-sun |
110 |
This will setup things to use Java Version 6 from Sun. |
This will setup things to use Java Version 6 from Sun. |
111 |
|
|
112 |
${0##*/} java-1.7-openjdk |
${0##*/} java7-openjdk |
113 |
This will setup things to use OpenJDK Version 7. |
This will setup things to use OpenJDK Version 7. |
114 |
|
|
115 |
FOO |
FOO |
149 |
fi |
fi |
150 |
;; |
;; |
151 |
|
|
|
--prefix=*) |
|
|
PREFIX="${opt#*=}" |
|
|
AVAIL_IMPLEMS=$(get_implementations) |
|
|
;; |
|
|
|
|
152 |
--help|-h|-?) ACTION="usage" ;; |
--help|-h|-?) ACTION="usage" ;; |
153 |
--version) ACTION="version" ;; |
--version) ACTION="version" ;; |
154 |
*) |
*) |