framework: Makde frosch and rb path independant
authorPhilipp Hachtmann <hachti@hachti.de>
Mon, 28 Sep 2015 16:45:37 +0000 (18:45 +0200)
committerPhilipp Hachtmann <hachti@hachti.de>
Mon, 28 Sep 2015 16:45:37 +0000 (18:45 +0200)
Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
bin/rb
sw/pc/kermit_script/frosch

diff --git a/bin/rb b/bin/rb
index a877b8f4f58001e74c73b8bd37e368cc037e8587..3f4cc603640b97dd821d80f5c5f7bf064d53001e 100755 (executable)
--- 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
index 4d6aeb0331ce24c0bb443d70aa85520515b554fd..da3a2d9a66f53e8e8ff5511a6c5b87a5040ba134 100755 (executable)
@@ -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