X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=extra-find-requires.sh;fp=extra-find-requires.sh;h=0000000000000000000000000000000000000000;hb=7f2ff37315d0ac107d8a750a326794fa3a2bbc77;hp=a7c5a0c203e84ea715f59ec6532ce4dbfa6526ba;hpb=cb663bc806754675aa934ec917eb45018dc86c00;p=a-fedora-appliance.git diff --git a/extra-find-requires.sh b/extra-find-requires.sh deleted file mode 100755 index a7c5a0c..0000000 --- a/extra-find-requires.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -# a-fedora-appliance -# Copyright (C) 2011 Red Hat Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -# Additional custom requires for the package. - -original_find_requires="$1" -shift - -# Get the list of files. -files=`sed "s/['\"]/\\\&/g"` - -# Use ordinary find-requires first. -echo $files | tr [:blank:] '\n' | $original_find_requires - -# Is supermin.d/hostfiles included in the list of files? -hostfiles=`echo $files | tr [:blank:] '\n' | grep 'supermin\.d/hostfiles$'` - -if [ -z "$hostfiles" ]; then - exit 0 -fi - -# Generate extra requires for libraries listed in hostfiles. -sofiles=`grep 'lib.*\.so\.' $hostfiles | fgrep -v '*' | sed 's|^\.||'` -for f in $sofiles; do - if [ -f "$f" ]; then - echo "$f" - fi -done