summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-07-13 12:11:00 +0000
committerjbj <devnull@localhost>2005-07-13 12:11:00 +0000
commitcb1d12af9057536c5d1625b3092abf4bbe1a8fb1 (patch)
treee994a19301c7a511bf167bfc1883d0dd3384d85b /scripts
parent54338346440f6b7552e232fa5179eb51b60a851a (diff)
downloadlibrpm-tizen-cb1d12af9057536c5d1625b3092abf4bbe1a8fb1.tar.gz
librpm-tizen-cb1d12af9057536c5d1625b3092abf4bbe1a8fb1.tar.bz2
librpm-tizen-cb1d12af9057536c5d1625b3092abf4bbe1a8fb1.zip
Added from bugzilla #153935.
CVS patchset: 7885 CVS date: 2005/07/13 12:11:00
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libtool.prov.sh10
-rw-r--r--scripts/libtool.req.sh15
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/libtool.prov.sh b/scripts/libtool.prov.sh
new file mode 100644
index 000000000..042ab29ef
--- /dev/null
+++ b/scripts/libtool.prov.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+while read possible ; do
+ case "$possible" in
+ *.la)
+ if grep -iq '^# Generated by ltmain.sh' "$possible" 2> /dev/null ; then
+ echo "libtool($possible)"
+ fi
+ ;;
+ esac
+done
diff --git a/scripts/libtool.req.sh b/scripts/libtool.req.sh
new file mode 100644
index 000000000..4d95ddb14
--- /dev/null
+++ b/scripts/libtool.req.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+while read possible ; do
+ case "$possible" in
+ *.la)
+ for dep in `grep ^dependency_libs= "$possible" 2> /dev/null | \
+ sed -r -e "s,^dependency_libs='(.*)',\1,g"` ; do
+ case "$dep" in
+ /*.la)
+ echo "libtool($dep)"
+ ;;
+ esac
+ done
+ ;;
+ esac
+done