1
0
mirror of https://github.com/PDP-10/its.git synced 2026-05-04 23:26:02 +00:00
Files
PDP-10.its/build/pdp10-kl/start

40 lines
546 B
Bash
Executable File

#!/bin/sh
EXIT=:
trap "" QUIT INT TERM
started() {
EXIT="$EXIT;stop $1 $2"
trap "$EXIT" EXIT
echo "$1 started, pid $2"
}
stop() {
echo -n "Stopping $1... "
kill "$2" 2> /dev/null
sleep 2
kill -9 "$2" 2> /dev/null
echo "OK"
}
help() {
cat <<EOF
This start script takes several command line arguments:
help - Display this help text.
EOF
touch out/pdp10-kl/nohelp
}
test -f out/pdp10-kl/nohelp || help
while test -n "$1"; do
"$1"
shift
done
tools/sims/BIN/pdp10-kl build/pdp10-kl/run
exit 0