summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-12-17 16:45:22 +0000
committerjbj <devnull@localhost>1998-12-17 16:45:22 +0000
commit0c254129027caaff918760d86753ef067b5b47a3 (patch)
tree2770043181280156f7331a2c1fb4735048e7b74e /autodeps
parent10d3b6d5b6784c8a3c1680497af3e0a15e5e884a (diff)
downloadlibrpm-tizen-0c254129027caaff918760d86753ef067b5b47a3.tar.gz
librpm-tizen-0c254129027caaff918760d86753ef067b5b47a3.tar.bz2
librpm-tizen-0c254129027caaff918760d86753ef067b5b47a3.zip
ultrapenguin 1.1.9 sparc64 changes.
CVS patchset: 2605 CVS date: 1998/12/17 16:45:22
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/sparc-linux.req27
1 files changed, 27 insertions, 0 deletions
diff --git a/autodeps/sparc-linux.req b/autodeps/sparc-linux.req
new file mode 100644
index 000000000..d2f922e52
--- /dev/null
+++ b/autodeps/sparc-linux.req
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# note this works for both a.out and ELF executables
+# it also auto-generates requirment lines for shell scripts
+
+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 ":.* (commands|script) " | cut -d: -f1 `
+liblist=`echo $filelist | xargs -r file | grep "shared object" | cut -d : -f1 `
+
+for f in $exelist; do
+ if [ -x $f ]; then
+ ldd $f | awk '/=>/ { print $1 }'
+ fi
+done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v '4[um]lib.so' | sort -u
+
+for f in $liblist; do
+ ldd $f | awk '/=>/ { print $1 }'
+done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v '4[um]lib.so' | sort -u
+
+for f in $scriptlist; do
+ if [ -x $f ]; then
+ head -1 $f | sed -e 's/^\#\![ ]*//' | cut -d" " -f1
+ fi
+done | sort -u