17 lines
481 B
Bash
Executable File
17 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
# Launch j3270 - Java TN3270 Terminal Emulator
|
|
# Usage: ./run.sh [host] [port] [model]
|
|
# Example: ./run.sh mainframe.example.com 23 4
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
BUILD_DIR="$SCRIPT_DIR/build"
|
|
|
|
# Build if jar is missing or rebuild requested
|
|
if [ ! -f "$BUILD_DIR/j3270.jar" ]; then
|
|
"$SCRIPT_DIR/build_all.sh"
|
|
fi
|
|
|
|
exec java -Dapple.laf.useScreenMenuBar=true \
|
|
-Dapple.awt.application.name=j3270 \
|
|
-jar "$BUILD_DIR/j3270.jar" "$@"
|