#!/bin/sh
#
# ------------------------------------------------------------
#
# The online documentation of JADE is located at
#
# https://kb.sos-berlin.com/display/PKB/YADE+-+Documentation
#
# ------------------------------------------------------------
#
# if you have a firefox or xdg-open in the path then you can
# call this script to open the documentation

jade_url="https://kb.sos-berlin.com/display/PKB/YADE+-+Documentation"
browse=`which firefox 2>/dev/null`
browse_exit=$?
if [ ${browse_exit} -eq 0 ]
then
  "${browse}" "${jade_url}" &
  exit 0
else
  browse=`which xdg-open 2>/dev/null`
  browse_exit=$?
fi
if [ ${browse_exit} -eq 0 ]
then
  "${browse}" "${jade_url}" &
  exit 0
fi
exit ${browse_exit}  
 
