Merge branch 'pu'
[jungerl.git] / lib / gtkNode / src / get_inc_path
blob16cdd4c0a29840c4a2c1c58605beb9d4e19693bf
1 #!/bin/bash
3 if [ $# -ne 2 ]; then
4 exit
5 fi
6 PKG="$1"
7 PK="$2"
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-`
15 done
16 echo $PTH