smarter virtual provides info

This commit is contained in:
Christopher Aillon 2007-05-26 00:33:52 +00:00
parent b3cc4544dc
commit 0f9c24b238
1 changed files with 9 additions and 6 deletions

View File

@ -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