File: jsamp-script.sh

package info (click to toggle)
jsamp 1.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,176 kB
  • sloc: java: 24,867; xml: 2,975; sh: 6; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Paul Sladen, 17 June 2016
# Included at recommendation of Mark Taylor (upstream); based on information in:
# http://www.star.bristol.ac.uk/~mbt/jsamp/commands.html
# https://github.com/Starlink/starjava/blob/master/jsamp/src/script/jsamp
# The Java class already includes command-line/help handling.

if [ $# = 0 ]; then
    JSAMP_SCRIPT_ARGS=-help
else
    JSAMP_SCRIPT_ARGS="$@"
fi

exec /usr/bin/java -classpath /usr/share/java/jsamp.jar org.astrogrid.samp.JSamp $JSAMP_SCRIPT_ARGS