repo.or.cz
/
wireshark-wip.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git]
/
packaging
/
macosx
/
Scripts
/
cli-preinstall.sh
blob
a8d928cae0bd6d1ddeda07b31776cf51b5b848be
1
#!/bin/sh
2
3
# Create any missing directories with mode 755, owned by root:wheel.
4
# Don't blindly clobber anything that's already there.
5
function
build_path
()
6
{
7
echo
"Checking
$1
"
8
if
[ !
-d
"
$1
"
] ;
then
9
TRIMMED
=
`dirname "
$1
"`
10
if
[ !
-d
"
$TRIMMED
"
] ;
then
11
build_path
"
$TRIMMED
"
12
fi
13
install
-v -o
root
-g
wheel
-m
0755
-d
"
$1
"
14
fi
15
16
}
17
18
build_path
"
$2
"