2012-08-02 18:31:26 +00:00
|
|
|
#!/bin/bash -
|
2009-12-21 13:06:12 +00:00
|
|
|
# Additional custom requires for libguestfs 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
|
|
|
|
|
2014-02-26 20:59:20 +00:00
|
|
|
# Is supermin.d/packages included in the list of files?
|
|
|
|
packages=`echo $files | tr [:blank:] '\n' | grep 'supermin\.d/packages$'`
|
2009-12-21 13:06:12 +00:00
|
|
|
|
2014-02-26 20:59:20 +00:00
|
|
|
if [ -z "$packages" ]; then
|
2009-12-21 13:06:12 +00:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2014-02-26 20:59:20 +00:00
|
|
|
# Generate one 'Requires:' line for each package listed in packages.
|
|
|
|
cat $packages
|