Changeset 15491 in josm
- Timestamp:
- 2019-11-01T13:30:58+01:00 (5 years ago)
- Location:
- trunk/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/linux/latest/usr/bin/josm-latest
r15379 r15491 10 10 ARCH="`dpkg --print-architecture 2> /dev/null || true`" 11 11 12 JAVA_CMDS="$JAVA_HOME/bin/java" 13 12 14 # If OpenJDK is only available headless, do not try it 13 if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null ; then14 JAVA_CMDS="$JAVA_HOME/bin/java" 15 if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null \ 16 || dpkg --get-selections 'openjdk-*-jre:$ARCH' | grep install$ > /dev/null ; then 15 17 # LTS versions in decreased order 16 18 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-11-openjdk/bin/java /usr/lib/jvm/java-11-openjdk-$ARCH/bin/java" … … 23 25 # Development version 24 26 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-14-openjdk/bin/java /usr/lib/jvm/java-14-openjdk-$ARCH/bin/java" 25 else26 JAVA_CMDS="$JAVA_HOME/bin/java /usr/bin/java"27 27 fi 28 # Undetermined version 29 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/default-java/bin/java /usr/bin/java" 28 30 29 31 if [ -f /etc/default/josm-latest ]; then -
trunk/linux/tested/usr/bin/josm
r15379 r15491 10 10 ARCH="`dpkg --print-architecture 2> /dev/null || true`" 11 11 12 JAVA_CMDS="$JAVA_HOME/bin/java" 13 12 14 # If OpenJDK is only available headless, do not try it 13 if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null ; then14 JAVA_CMDS="$JAVA_HOME/bin/java" 15 if dpkg --get-selections 'openjdk-*-jre' | grep install$ > /dev/null \ 16 || dpkg --get-selections 'openjdk-*-jre:$ARCH' | grep install$ > /dev/null ; then 15 17 # LTS versions in decreased order 16 18 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-11-openjdk/bin/java /usr/lib/jvm/java-11-openjdk-$ARCH/bin/java" … … 23 25 # Development version 24 26 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/java-14-openjdk/bin/java /usr/lib/jvm/java-14-openjdk-$ARCH/bin/java" 25 else26 JAVA_CMDS="$JAVA_HOME/bin/java /usr/bin/java"27 27 fi 28 # Undetermined version 29 JAVA_CMDS="${JAVA_CMDS} /usr/lib/jvm/default-java/bin/java /usr/bin/java" 28 30 29 31 if [ -f /etc/default/josm ]; then
Note:
See TracChangeset
for help on using the changeset viewer.