Commit 9baf8062 authored by Mathias Haage's avatar Mathias Haage
Browse files

Update jgrafchart script

parent a312f601
#!/bin/sh
#!/bin/bash
$JGRAFCHART_HOME/bin/run $1 $2 $3
USAGE="Usage: %s [-lcs] [file]\n"
if [ "$#" -eq 0 ]; then
$JGRAFCHART_HOME/bin/run
exit 0
fi
if [ "$#" -ne 2 ]; then
printf "$USAGE" $0
exit 1
fi
ARG=""
while getopts ":l:c:s:" opt; do
case $opt in
l)
ARG="-load"
;;
c)
ARG="-loadcompile"
;;
s)
ARG="-loadcompilestart"
;;
\?)
printf "$USAGE" $0
exit 1
;;
esac
FILE="$(realpath $OPTARG)"
done
$JGRAFCHART_HOME/bin/run $ARG $FILE
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment