/usr/bin/listsources is in xbuilder 1.0.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/sh
here=`pwd`
usage()
{
echo "usage: $@ <inputfile> <outputfile>"
echo "inputfile contains a list of packages, binaries, or source"
echo "output file will contain a sorted, de-duped list of corresponding source packages"
exit 1
}
if [ -z "$1" ] || [ -z "$2" ]; then usage; fi
rm -f $2
for package in `cat $1`
do
echo -n "finding source for $package:"
sourcepackage=`grep-aptavail -X -FSource -FPackage $package -s Source:Package | awk '{ print $2 }' | sort | uniq`
if [ -z "${sourcepackage}" ]; then
echo "No source found for $package";
else
echo ${sourcepackage} >> $2
echo " ${sourcepackage}"
fi
done
|