diff options
Diffstat (limited to 'add-gecko-provides.in')
-rwxr-xr-x | add-gecko-provides.in | 15 |
1 files 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 |