repo.or.cz
/
jungerl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'pu'
[jungerl.git]
/
lib
/
gtkNode
/
src
/
get_inc_path
blob
16cdd4c0a29840c4a2c1c58605beb9d4e19693bf
1
#!/bin/bash
2
3
if
[
$#
-ne
2
];
then
4
exit
5
fi
6
PKG
=
"
$1
"
7
PK
=
"
$2
"
8
9
CFLAGS
=
`pkg-config --cflags "
$PKG
"`
10
PTH
=
""
11
for
f
in
$CFLAGS
;
do
12
if
[
"`echo "
$f
" | grep "
include
/
$PK
"`"
!=
""
];
then
13
PTH
=
`echo "
$f
" | cut -c3-`
14
fi
15
done
16
echo
$PTH
17