diff options
author | jbj <devnull@localhost> | 2000-02-17 16:26:52 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-02-17 16:26:52 +0000 |
commit | 3a092572e8155e342920b403d4a2b8512bc6d868 (patch) | |
tree | 2dec3edda47ce9a8f1745610da0920de76e31354 | |
parent | 015dd4088541a5656974eeea16aa15616e6a1576 (diff) | |
download | rpm-3a092572e8155e342920b403d4a2b8512bc6d868.tar.gz rpm-3a092572e8155e342920b403d4a2b8512bc6d868.tar.bz2 rpm-3a092572e8155e342920b403d4a2b8512bc6d868.zip |
Use better RE and grep for exelist and liblist.
CVS patchset: 3566
CVS date: 2000/02/17 16:26:52
-rw-r--r-- | autodeps/linux.req | 4 | ||||
-rw-r--r-- | autodeps/sparc-linux.req | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req index e32e8b093..aa6f477bc 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 d1b674da1..937efa5bb 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 |