From 23f22cd378b4b2a44ea7e0c766d186995965cb1d Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Sun, 20 Nov 2011 01:55:58 +0100 Subject: [PATCH] xine-lib-cleanup-sources.sh: Fix removing unwanted input plugin files. EXTRA_DIST is not an actual use of the file. --- xine-lib-cleanup-sources.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xine-lib-cleanup-sources.sh b/xine-lib-cleanup-sources.sh index 1cabc9c..1ccd7cc 100755 --- a/xine-lib-cleanup-sources.sh +++ b/xine-lib-cleanup-sources.sh @@ -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