From 0c254129027caaff918760d86753ef067b5b47a3 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 17 Dec 1998 16:45:22 +0000 Subject: ultrapenguin 1.1.9 sparc64 changes. CVS patchset: 2605 CVS date: 1998/12/17 16:45:22 --- autodeps/sparc-linux.req | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 autodeps/sparc-linux.req (limited to 'autodeps') 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 -- cgit v1.2.3