OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [scripts/] [pathdown.sh] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#!/bin/sh
2
UP=
3
DN=${PWD:?}
4
TP=${TOPDIR:?}
5
 
6
while [ ! $TP/$UP/. -ef $DN ] ;do
7
        UP=`basename $PWD`/$UP
8
        cd ..
9
        if [ "$PWD" = "/" ]; then echo "Lost"; exit 1; fi
10
done
11
 
12
echo $UP
13
exit 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.