From: Philipp Hachtmann Date: Mon, 28 Sep 2015 16:45:37 +0000 (+0200) Subject: framework: Makde frosch and rb path independant X-Git-Url: http://gitweb.hachti.de/?a=commitdiff_plain;h=eadb1a5d28c6968bc6d4a6ffb036adc210a137dd;p=pdp8.git framework: Makde frosch and rb path independant Signed-off-by: Philipp Hachtmann --- diff --git a/bin/rb b/bin/rb index a877b8f..3f4cc60 100755 --- a/bin/rb +++ b/bin/rb @@ -2,14 +2,19 @@ # AUTO BOOT THE PDP8 VIA RIM LOADER +PDP8=$(realpath $(dirname "$0")/..) +AUTO_RIM=~/pdp8/sw/autobin/autobin.rim + PORT=`cat ~/.minirc.dfl | grep "port" | awk '{print $3}'` if [ ! "$PORT" ]; then PORT="/dev/ttyS0"; fi SPEED=`cat ~/.minirc.dfl | grep "baudrate" | awk '{print $3}'` -AUTO_RIM=~/pdp8/work/autobin/autobin.rim echo "PORT : $PORT" echo "SPEED: $SPEED" + +echo "PDP8: $PDP8" + error(){ echo "ERROR: $1" >&2 bad diff --git a/sw/pc/kermit_script/frosch b/sw/pc/kermit_script/frosch index 4d6aeb0..da3a2d9 100755 --- a/sw/pc/kermit_script/frosch +++ b/sw/pc/kermit_script/frosch @@ -1,4 +1,7 @@ #!/bin/bash + +PDP8=$(realpath $(dirname "$0")/..) + rm -f /var/lock/LCK..ttyUSB0 stty -F /dev/ttyUSB0 38400 raw -echo clocal -crtscts -kermit /$HOME/pdp8/sw/pc/kermit_script/frosch.k \ No newline at end of file +kermit $PDP8/sw/pc/kermit_script/frosch.k \ No newline at end of file