summaryrefslogtreecommitdiffstats
path: root/tools/extract-api.sh
diff options
context:
space:
mode:
authorLionel Orry <lionel.orry@gmail.com>2011-05-09 21:05:31 +0200
committerjeremyz <jeremy@asynk.ch>2011-05-09 21:30:33 +0200
commit733a2ca1dd5ee08048eff4b50fbe5e07ee3498e1 (patch)
tree5876cc79e98402683a085949c4e9f7d2caa8231b /tools/extract-api.sh
parent853b6be0ceceb897f736c77c081be7dcf4a387ee (diff)
downloadffi-efl-733a2ca1dd5ee08048eff4b50fbe5e07ee3498e1.zip
ffi-efl-733a2ca1dd5ee08048eff4b50fbe5e07ee3498e1.tar.gz
use a cleaner way to get the include dir. Previous was buggy on Gentoo at least
Diffstat (limited to 'tools/extract-api.sh')
-rwxr-xr-xtools/extract-api.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/extract-api.sh b/tools/extract-api.sh
index 254a693..65e09e1 100755
--- a/tools/extract-api.sh
+++ b/tools/extract-api.sh
@@ -6,7 +6,7 @@ P=$(dirname $0)
#
CURRENT=$P/api
PREV=$P/api-prev
-INCLUDE=$(pkg-config --libs ecore |gawk '{ print substr($1,3) }' | sed s/lib/include/)
+INCLUDE=$(pkg-config --variable=includedir ecore)
#
if [ ! -d $CURRENT ]; then
mkdir $CURRENT