777a1c8
#!/bin/sh
777a1c8
#
777a1c8
# Use the internal provides generator"
777a1c8
#
777a1c8
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
777a1c8
provides=`echo $filelist | /usr/lib/rpm/find-provides`
777a1c8
echo $provides
777a1c8
777a1c8
#
777a1c8
# Now output the stuff we want to add
777a1c8
#
0f9c24b
core_files=`echo $filelist | grep "libxpcom\.so" | wc -l`
0f9c24b
devel_files=`echo $filelist | grep "firefox\-xpcom\.pc" | wc -l`
0f9c24b
debug_files=`echo $filelist | grep "libxpcom\.so\.debug" | wc -l`
0f9c24b
if [ $debug_files -eq 0 ]; then
0f9c24b
  if [ $devel_files -gt 0 ]; then
0f9c24b
    echo "gecko-devel = @GECKO_VERSION@"
0f9c24b
  elif [ $core_files -gt 0 ]; then
0f9c24b
    echo "gecko-libs = @GECKO_VERSION@"
0f9c24b
  fi
777a1c8
fi