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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [scripts/] [pathdown.sh] - Diff between revs 199 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 199 Rev 1765
#!/bin/sh
#!/bin/sh
UP=
UP=
DN=${PWD:?}
DN=${PWD:?}
TP=${TOPDIR:?}
TP=${TOPDIR:?}
 
 
while [ ! $TP/$UP/. -ef $DN ] ;do
while [ ! $TP/$UP/. -ef $DN ] ;do
        UP=`basename $PWD`/$UP
        UP=`basename $PWD`/$UP
        cd ..
        cd ..
        if [ "$PWD" = "/" ]; then echo "Lost"; exit 1; fi
        if [ "$PWD" = "/" ]; then echo "Lost"; exit 1; fi
done
done
 
 
echo $UP
echo $UP
exit 0
exit 0
 
 

powered by: WebSVN 2.1.0

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