[vala] vala-gen-introspect: Allow absolute path in .files



commit 92556b7f2591e5825ca592cbabcc721acab6ba8b
Author: Arun Raghavan <arun raghavan collabora co uk>
Date:   Thu Dec 17 13:00:44 2009 +0530

    vala-gen-introspect: Allow absolute path in .files
    
    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 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/vala-gen-introspect/vala-gen-introspect.in b/vapigen/vala-gen-introspect/vala-gen-introspect.in
index d8c829b..ecf3dff 100755
--- a/vapigen/vala-gen-introspect/vala-gen-introspect.in
+++ b/vapigen/vala-gen-introspect/vala-gen-introspect.in
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]