diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-06 08:15:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-06 08:15:31 +0000 |
commit | 2082dfdc7cbf088a359516e68c00094174b4e14d (patch) | |
tree | 47b4f2a776a04ede1445b88f3a82a31b3a882ba0 /main/java-common/java-common.trigger | |
parent | 368dba765cda21cacba33c13b083dd3e563388c0 (diff) | |
download | aports-2082dfdc7cbf088a359516e68c00094174b4e14d.tar.bz2 aports-2082dfdc7cbf088a359516e68c00094174b4e14d.tar.xz |
main/java-common: moved from testing
needed by openjdk6
Diffstat (limited to 'main/java-common/java-common.trigger')
-rw-r--r-- | main/java-common/java-common.trigger | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/java-common/java-common.trigger b/main/java-common/java-common.trigger new file mode 100644 index 0000000000..6d0613d48e --- /dev/null +++ b/main/java-common/java-common.trigger @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ -x /usr/lib/jvm/forced-jvm ]; then + ln -sfn forced-jvm default-jvm + exit 0 +fi + +cd /usr/lib/jvm +LATEST=`ls -d java-* | sort -r | head -1` +if [ "$LATEST" ]; then + ln -sfn $LATEST default-jvm +fi + |