Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
NRI : Explode OCC_LIBS.
[modules/yacs.git]
/
bin
/
showNS.in
1
#!/bin/sh
2
3
4
showNameService() {
5
6
local noeud=$1
7
local decalage=$2
8
9
local list=`nameclt list $noeud`
10
11
for i in $list
12
do
13
case $i in
14
*.dir/)
15
j=`echo $1/$i | sed -e 's,^/,,' -e 's,/$,,' -`
16
k=`echo $j | sed -e 's,.dir,,g' -`
17
echo "$decalage" $k "(dir)"
18
showNameService "$j" "$decalage$decalage"
19
;;
20
*)
21
echo "$decalage" $i
22
;;
23
esac
24
done
25
}
26
27
showNameService "" " "