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

Kevin Kofler kkofler at fedoraproject.org
Sun Nov 20 01:03:50 UTC 2011


commit 23f22cd378b4b2a44ea7e0c766d186995965cb1d
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Sun Nov 20 01:55:58 2011 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
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


More information about the scm-commits mailing list