1
0
mirror of https://github.com/PDP-10/its.git synced 2026-03-24 09:30:29 +00:00
Files
PDP-10.its/build/pdp10-kl/start
Lars Brinkhoff 7e62179c39 Make it more convenient to start KA10 and KL10 versions.
Type one of:

./start ka10
./start kl10
2019-09-06 08:53:48 +02:00

39 lines
544 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"
}
gt40() {
(sleep 3; tools/simh/BIN/pdp11 build/pdp10-ka/gt40 >gt40.log 2>&1) &
started GT40 "$!"
}
ka10() {
tools/sims/BIN/pdp10-ka build/pdp10-kl/run
}
kl10() {
tools/sims/BIN/pdp10-kl build/pdp10-kl/kl.run
}
while test -n "$1"; do
"$1"
shift
done
exit 0