aboutsummaryrefslogtreecommitdiffstats
path: root/testing/java-common/java-common.trigger
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2011-03-26 22:11:53 +0000
committerTimo Teras <timo.teras@iki.fi>2011-03-26 22:15:51 +0000
commita31fe528bf0fd9b02f1c4850a183096f99d33c73 (patch)
tree6c4672ccc5cd612aa593ad8a01bc266f9f610b92 /testing/java-common/java-common.trigger
parent8e2d6ac68340a85895a7d5bfe323c4df3b4756ab (diff)
downloadaports-a31fe528bf0fd9b02f1c4850a183096f99d33c73.tar.gz
aports-a31fe528bf0fd9b02f1c4850a183096f99d33c73.tar.bz2
aports-a31fe528bf0fd9b02f1c4850a183096f99d33c73.tar.xz
testing/java-common: new aport
a meta package that setups links for default java virtual machine
Diffstat (limited to 'testing/java-common/java-common.trigger')
-rw-r--r--testing/java-common/java-common.trigger13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/java-common/java-common.trigger b/testing/java-common/java-common.trigger
new file mode 100644
index 0000000000..6d0613d48e
--- /dev/null
+++ b/testing/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
+