]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala-gen-introspect: Allow absolute path in .files
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 17 Dec 2009 07:30:44 +0000 (13:00 +0530)
committerJürg Billeter <j@bitron.ch>
Thu, 17 Dec 2009 08:07:24 +0000 (09:07 +0100)
This allows one to specify absolute paths to headers and libraries in
.files. This will make it possible to generate the VAPI as part of the
library's build process.

vapigen/vala-gen-introspect/vala-gen-introspect.in

index d8c829b384f27683657ed1285b35e299dc9a321f..ecf3dffa203e0127eab27c1272208cce823ed091 100755 (executable)
@@ -15,7 +15,9 @@ PKGNAME=$1
 PKGBASE=$2/$1
 PKGPREFIX=`pkg-config --variable=prefix $PKGNAME`
 
-PKGFILES=`cat $PKGBASE.files | grep ^[a-zA-Z] | sed -e "s@^@$PKGPREFIX/@"`
+PKGFILES=`cat $PKGBASE.files | grep ^[/.]`
+PKGFILES="${PKGFILES}\
+        `cat $PKGBASE.files | grep ^[a-zA-Z] | sed -e "s@^@$PKGPREFIX/@"`"
 
 if [ -e $PKGBASE.excludes ]
 then