aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-05-06 13:34:07 (GMT)
committerNicolas Vigier <boklm@mageia.org>2011-05-06 13:34:07 (GMT)
commit2b1d317dab2b6d464a49819043683594517fa9e1 (patch)
treebbe3b362704947bac5a90be8bf14568fe5419698
parent54941d877a16df700edc60c6220e0018cb12948f (diff)
fix script file filtering, according to latest changes in file command output
thanks to Funda Wang for reporting the problem : http://www.mageia.org/pipermail/mageia-dev/20110506/004442.html
-rwxr-xr-xfind-requires.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-requires.in b/find-requires.in
index 0750da7..b091797 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -41,7 +41,7 @@ filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"`
exelist=`echo "$filelist" | xargs -r file | egrep -v ":.* (commands|script) " | \
grep ":.*ELF.*executable" | cut -d: -f1`
scriptlist=`echo "$filelist" | grep -v /usr/doc | grep -v /usr/share/doc | xargs -r file | \
- egrep ":.* (commands|script) " | cut -d: -f1`
+ egrep ":.* (commands|script)" | cut -d: -f1`
liblist=`echo "$filelist" | egrep -v "/usr/lib(64)?/gcj/" | xargs -r file | \
grep ":.*shared object" | cut -d : -f1`
ocamllist=`echo "$filelist" | xargs -r file | \