OSDN Git Service
(root)
/
linux-kernel-docs
/
linux-2.4.36.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
e1000: update README
[linux-kernel-docs/linux-2.4.36.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