Magellan Linux

Diff of /trunk/java-update/java-update.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/java-update/java-update.sh revision 1879 by niro, Sat Feb 18 19:37:02 2012 UTC trunk/java-update/java-update.in revision 2018 by niro, Mon Jan 7 11:27:04 2013 UTC
# Line 98  Usage: ${0##*/} [<options>] <Java implem Line 98  Usage: ${0##*/} [<options>] <Java implem
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
# Line 150  parse_options() Line 149  parse_options()
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   *)   *)

Legend:
Removed from v.1879  
changed lines
  Added in v.2018