projects
/
linux-2.4.21-pre4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make oldconfig will rebuild these...
[linux-2.4.21-pre4.git]
/
scripts
/
pathdown.sh
1
#!/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