summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authormarc <devnull@localhost>1997-09-17 17:52:08 +0000
committermarc <devnull@localhost>1997-09-17 17:52:08 +0000
commitb1af513e6358428e6f934db1c611222812d3f55f (patch)
tree264f3ba8d04db97d53fd9396a8acc21c3c9e44dc /autodeps
parentd4803c088c1e115dfbb21e9d2c312bef8af2decb (diff)
downloadlibrpm-tizen-b1af513e6358428e6f934db1c611222812d3f55f.tar.gz
librpm-tizen-b1af513e6358428e6f934db1c611222812d3f55f.tar.bz2
librpm-tizen-b1af513e6358428e6f934db1c611222812d3f55f.zip
Fix requires generation for scripts
CVS patchset: 1830 CVS date: 1997/09/17 17:52:08
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/linux.req4
1 files changed, 2 insertions, 2 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req
index eb1f6f4b2..30fcd9bc9 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -7,12 +7,12 @@ ulimit -c 0
filelist=`sed "s/['\"]/\\\&/g"`
exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1 `
-scriptlist=`echo $filelist | xargs -r file | egrep ":.*(perl|script)" | cut -d: -f1 `
+scriptlist=`echo $filelist | xargs -r file | egrep ":.*(perl |script )" | cut -d: -f1 `
for f in $exelist; do
ldd $f | awk '/=>/ { print $1 }'
done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u
for f in $scriptlist; do
- head -1 $f | sed -e 's/^\#\!//' | cut -d" " -f1
+ head -1 $f | sed -e 's/^\#\![ ]*//' | cut -d" " -f1
done | sort -u