[Oberon] Startup script for Oberon V4 for Linux

Treutwein Bernhard Bernhard.Treutwein at Verwaltung.Uni-Muenchen.DE
Tue Nov 6 15:36:32 CET 2018


I finally succeeded with the following slightly modified startup script:
I trried it successfully with TinCore 9.2 (you have to install the bash extension),
Q4OS 32bit and 64bit.
-------------------------------------------- cut here -----------------
#!/bin/bash

# change the line below if you have installed oberon to a different
# directory
export OBROOT=/usr/local/oberon

for f in `find $OBROOT/ -maxdepth 1 -mindepth 1 -type d`;  do  
  rm `basename $f`
  if ! test -e `basename $f` ; then
	  ln -s $f `basename $f` 2> /dev/null
  fi
done
rm root
ln -s $OBROOT root 2> /dev/null
OBERON="./:`find $OBROOT/ -type d | tr "\12" :`"
export OBERON
xset +fp $OBROOT/xfonts
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OBROOT
$OBROOT/oberon $1 $2 $3 $4 $5
-------------------------------------------- cut here -----------------
The differences to the original version of Robert are the following:
1. move -type d behind -mindepth 1
2. append / to $OBROOT in the two find statements

 (diff -uw sob sob.org):
----------------------------------------
--- /usr/local/oberon/sob	2018-11-06 15:07:13.253525925 +0100
+++ /usr/local/oberon/sob.org	2004-11-05 19:47:16.000000000 +0100
@@ -2,9 +2,9 @@
 
# directory
export OBROOT=/usr/local/oberon
 
-for f in `find $OBROOT/ -maxdepth 1 -mindepth 1 -type d`;  do  
+for f in `find $OBROOT -type d -maxdepth 1 -mindepth 1`;  do  
   rm `basename $f`
   if ! test -e `basename $f` ; then
 	  ln -s $f `basename $f` 2> /dev/null
@@ -12,7 +12,7 @@
 done
 rm root
 ln -s $OBROOT root 2> /dev/null
-OBERON="./:`find $OBROOT/ -type d | tr "\12" :`"
+OBERON="./:`find $OBROOT -type d | tr "\12" :`"
 export OBERON
 xset +fp $OBROOT/xfonts
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OBROOT
----------------------------------------
Bernhard


>-----Original Message-----
>From: Tomas Kral [mailto:thomas.kral at email.cz]
>Sent: Friday, November 02, 2018 1:26 PM
>To: oberon at lists.inf.ethz.ch
>Subject: Re: [Oberon] addition: Oberon V4 for Linux
>
>On Fri, 2 Nov 2018 12:07:00 +0000
>Treutwein Bernhard <Bernhard.Treutwein at Verwaltung.Uni-Muenchen.DE>
>wrote:
>
>> only a "-- failed" entry in the System.log
>
>I recoded to this and now it works.
>
>#!/bin/sh
># oberon start up script
>
>export OBERON=="./:`find $PWD -type d | tr "\12" :`"
>echo $OBERON
>#xset -display $DISPLAY +fp $PWD/Fonts
>export LD_LIBRARY_PATH=$PWD
>./oberon
># eof
>
>I needed to install and load fonts on local machine `RPI', as I connect
>to x86 server using `ssh -x', wheer Linz Oberon V4 is installed. So I
>need to run this command on local `xset -display $DISPLAY +fp
>$PWD/Fonts'
>
>Is there a better way?
>
>--
>Tomas Kral <thomas.kral at email.cz>



More information about the Oberon mailing list