From 777a1c822ae5c2fc12e6e488ac0ce5efbdb39dd7 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Wed, 11 Oct 2006 20:54:47 +0000 Subject: - Add virtual provides for gecko applications. --- add-gecko-provides.in | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 add-gecko-provides.in (limited to 'add-gecko-provides.in') diff --git a/add-gecko-provides.in b/add-gecko-provides.in new file mode 100755 index 0000000..2b47376 --- /dev/null +++ b/add-gecko-provides.in @@ -0,0 +1,18 @@ +#!/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 "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@" +fi -- cgit