xine-lib-cleanup-sources.sh: Fix removing unwanted input plugin files.

EXTRA_DIST is not an actual use of the file.
This commit is contained in:
Kevin Kofler 2011-11-20 01:55:58 +01:00
parent c02680866f
commit 23f22cd378

View File

@ -48,7 +48,7 @@ for p in dvd vcd mms; do
echo "removing $p input plugin..."
# Remove sources
for sourcefile in `awk '/^xineplug_inp_'$p'_la_SOURCES/ { $1=""; $2=""; print $0}' src/input/Makefile.am`; do
if [ "`grep -c $sourcefile src/input/Makefile.am`" -le 1 ]; then # if this file is only used for this plugin
if [ "`grep -v '^EXTRA_DIST = ' src/input/Makefile.am | grep -c $sourcefile`" -le 1 ]; then # if this file is only used for this plugin
rm -f src/input/$sourcefile
fi
done