From 0f9c24b23810b6b2f8e7cff2f7ba855ab400e55d Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Sat, 26 May 2007 00:33:52 +0000 Subject: smarter virtual provides info --- add-gecko-provides.in | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/add-gecko-provides.in b/add-gecko-provides.in index 2b47376..cd35363 100755 --- a/add-gecko-provides.in +++ b/add-gecko-provides.in @@ -9,10 +9,13 @@ echo $provides # # Now output the stuff we want to add # -core_files=`echo $filelist | grep "libxpcom.so" | wc -l` -devel_files=`echo $filelist | grep "nsISupports" | wc -l` -if [ $devel_files -gt 0 ]; then - echo "gecko-devel = @GECKO_VERSION@" -elif [ $core_files -gt 0 ]; then - echo "gecko-libs = @GECKO_VERSION@" +core_files=`echo $filelist | grep "libxpcom\.so" | wc -l` +devel_files=`echo $filelist | grep "firefox\-xpcom\.pc" | wc -l` +debug_files=`echo $filelist | grep "libxpcom\.so\.debug" | wc -l` +if [ $debug_files -eq 0 ]; then + if [ $devel_files -gt 0 ]; then + echo "gecko-devel = @GECKO_VERSION@" + elif [ $core_files -gt 0 ]; then + echo "gecko-libs = @GECKO_VERSION@" + fi fi -- cgit