mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
git-svn-id: svn://coreboot.org/openbios/openbios-devel@285 f158a5a8-5612-0410-a976-696ce0be7e32
11 lines
244 B
Bash
Executable File
11 lines
244 B
Bash
Executable File
#!/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
|