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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [scripts/] [pathdown.sh] - Blame information for rev 1774

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

Line No. Rev Author Line
1 1275 phoenix
#!/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.