From 3a092572e8155e342920b403d4a2b8512bc6d868 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 17 Feb 2000 16:26:52 +0000 Subject: [PATCH] Use better RE and grep for exelist and liblist. CVS patchset: 3566 CVS date: 2000/02/17 16:26:52 --- autodeps/linux.req | 4 ++-- autodeps/sparc-linux.req | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autodeps/linux.req b/autodeps/linux.req index e32e8b0..aa6f477 100644 --- a/autodeps/linux.req +++ b/autodeps/linux.req @@ -6,9 +6,9 @@ ulimit -c 0 filelist=`sed "s/['\"]/\\\&/g"` -exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1 ` +exelist=`echo $filelist | xargs -r file | grep ":.*executable" | cut -d: -f1 ` scriptlist=`echo $filelist | xargs -r file | egrep ":.* (commands|script) " | cut -d: -f1 ` -liblist=`echo $filelist | xargs -r file | grep "shared object" | cut -d : -f1 ` +liblist=`echo $filelist | xargs -r file | grep ":.*shared object" | cut -d : -f1 ` for f in $exelist; do if [ -x $f ]; then diff --git a/autodeps/sparc-linux.req b/autodeps/sparc-linux.req index d1b674d..937efa5 100644 --- a/autodeps/sparc-linux.req +++ b/autodeps/sparc-linux.req @@ -6,9 +6,9 @@ ulimit -c 0 filelist=`sed "s/['\"]/\\\&/g"` -exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1 ` +exelist=`echo $filelist | xargs -r file | grep ":.*executable" | cut -d: -f1 ` scriptlist=`echo $filelist | xargs -r file | egrep ":.* (commands|script) " | cut -d: -f1 ` -liblist=`echo $filelist | xargs -r file | grep "shared object" | cut -d : -f1 ` +liblist=`echo $filelist | xargs -r file | grep ":.*shared object" | cut -d : -f1 ` for f in $exelist; do if [ -x $f ]; then -- 2.7.4