|
@@ -1,10 +1,10 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
-# This script is automatically run by Free Oberon on Linux
|
|
|
|
-# for each compiled module. The initial current directory of
|
|
|
|
-# the script is where FreeOberon executable is located.
|
|
|
|
-# You are free to edit this file to adjust the process.
|
|
|
|
|
|
+### This script is automatically run by Free Oberon on Linux
|
|
|
|
+### for each compiled module. The initial current directory of
|
|
|
|
+### the script is where FreeOberon executable is located.
|
|
|
|
+### You are free to edit this file to adjust the process.
|
|
|
|
|
|
-# Set DIR = directory of this script
|
|
|
|
|
|
+### Set DIR = directory of this script
|
|
SOURCE=${BASH_SOURCE[0]}
|
|
SOURCE=${BASH_SOURCE[0]}
|
|
while [ -h "$SOURCE" ]; do
|
|
while [ -h "$SOURCE" ]; do
|
|
DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
|
|
DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
|
|
@@ -15,6 +15,14 @@ DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
|
|
|
|
|
|
FNAME=$1
|
|
FNAME=$1
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
if [[ "${FNAME:0:1}" != "/" ]]; then
|
|
if [[ "${FNAME:0:1}" != "/" ]]; then
|
|
FNAME=../$FNAME
|
|
FNAME=../$FNAME
|
|
fi
|
|
fi
|
|
@@ -27,7 +35,9 @@ PATH="$OFRDIR:$PATH"
|
|
export OBERON=".:$DIR/../../src:$OFRDIR/Lib/Sym"
|
|
export OBERON=".:$DIR/../../src:$OFRDIR/Lib/Sym"
|
|
OFR="ofront+ -s -88 -7w"
|
|
OFR="ofront+ -s -88 -7w"
|
|
|
|
|
|
|
|
+
|
|
$OFR $2 $FNAME
|
|
$OFR $2 $FNAME
|
|
retcode=$?
|
|
retcode=$?
|
|
|
|
+
|
|
cd ..
|
|
cd ..
|
|
exit $retcode
|
|
exit $retcode
|