summaryrefslogtreecommitdiffstats
path: root/src/roms/openbios/config/scripts/reldir
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2019-05-11 15:12:49 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2019-05-11 15:12:49 -0500
commit9e80202352dd49bdd9e67b8b906d86f058431505 (patch)
tree5673c17aad6e3833da8c4ff21b5a11f666ec9fbe /src/roms/openbios/config/scripts/reldir
downloadhqemu-master.zip
hqemu-master.tar.gz
Initial import of abandoned HQEMU version 2.5.2HEADmaster
Diffstat (limited to 'src/roms/openbios/config/scripts/reldir')
-rwxr-xr-xsrc/roms/openbios/config/scripts/reldir10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/roms/openbios/config/scripts/reldir b/src/roms/openbios/config/scripts/reldir
new file mode 100755
index 0000000..50f384e
--- /dev/null
+++ b/src/roms/openbios/config/scripts/reldir
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+PREF="."
+for x in 0 1 2 3 4 5 6 7 ; do
+ test -f $PREF/config/configure.in && break
+ PREF="../$PREF"
+done
+ROOT=$( echo $(pwd) | sed "s,\(//*[^/][^/]*\)\{$x\}/*\$,," )
+RELNAME=$( echo $(pwd) | sed "s,^$ROOT/*,,g" )
+echo $RELNAME
OpenPOWER on IntegriCloud