Skip to content

Instantly share code, notes, and snippets.

@skids
Created January 20, 2015 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skids/645c4a83d8c3f0c0b42e to your computer and use it in GitHub Desktop.
Save skids/645c4a83d8c3f0c0b42e to your computer and use it in GitHub Desktop.
don't clobber imple-version, also openjdk has different cli options
diff --git a/bin/star.sh b/bin/star.sh
index 93ceb98..ddc8f3f 100755
--- a/bin/star.sh
+++ b/bin/star.sh
@@ -50,9 +50,10 @@ for impl in MoarVM jvm; do
echo "MoarVM" > $LOG_DIR/$impl-version.log
cat MoarVM/VERSION >> $LOG_DIR/$impl-version.log
elif [ "$impl" = "jvm" ] ; then
- java --version > $LOG_DIR/$impl-version.log
+ java --version > $LOG_DIR/$impl-version.log ||
+ java -showversion 2>&1 | grep 'OpenJDK' > $LOG_DIR/$impl-version.log
fi
- echo "Rakudo" > $LOG_DIR/$impl-version.log
+ echo "Rakudo" >> $LOG_DIR/$impl-version.log
cat rakudo/VERSION >> $LOG_DIR/$impl-version.log
echo "NQP" >> $LOG_DIR/$impl-version.log
cat nqp/VERSION >> $LOG_DIR/$impl-version.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment