22 lines
585 B
Bash
Executable File
22 lines
585 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Use the internal provides generator"
|
|
#
|
|
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
|
|
provides=`echo $filelist | /usr/lib/rpm/find-provides`
|
|
echo $provides
|
|
|
|
#
|
|
# Now output the stuff we want to add
|
|
#
|
|
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
|