openbsd-ports/devel/intellij/files/idea
jasper bd18a43fdf - update intellij to 9.0.2
from daniel dickman (MAINTAINER)
2010-04-30 19:02:17 +00:00

29 lines
871 B
Bash

#!/bin/sh
#
# $OpenBSD: idea,v 1.2 2010/04/30 19:02:17 jasper Exp $
#
# OpenBSD-specific startup script for IntelliJ IDE
IDEA_HOME=${TRUEPREFIX}/intellij
#-----------------------------------------------------------------------------
# Determine configuration settings
#-----------------------------------------------------------------------------
export IDEA_JDK=${JAVA_HOME}
if [ ! -x "${IDEA_JDK}/bin/java" ]; then
echo "Error: JAVA_HOME may not be defined correctly: ${IDEA_JDK}"
echo " Unable to find Java binary ${IDEA_JDK}/bin/java"
exit 1
fi
# Check if 'idea' executable can be found
if [ ! -x "${IDEA_HOME}/bin/idea.sh" ]; then
echo "Error: IDEA_HOME may not be defined correctly: ${IDEA_HOME}"
echo " Unable to find launcher binary: ${IDEA_HOME}/bin/idea.sh"
exit 1
fi
PATH=${IDEA_JDK}/bin:$PATH exec "${IDEA_HOME}/bin/idea.sh" $@