aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSven 'sleipnir' Rebhan <odinshorse@googlemail.com>2009-06-28 13:52:19 +0000
committerSven 'sleipnir' Rebhan <odinshorse@googlemail.com>2009-06-28 13:52:19 +0000
commitd7ae6db244d4324496e21b2b47107fcf9c935515 (patch)
treef021d3584463d36153e2debd9e9afda4cdd19cf4 /tools
parentRequired for alsa-lib. (diff)
downloadembedded-cross-d7ae6db244d4324496e21b2b47107fcf9c935515.tar.gz
embedded-cross-d7ae6db244d4324496e21b2b47107fcf9c935515.tar.bz2
embedded-cross-d7ae6db244d4324496e21b2b47107fcf9c935515.zip
Create a dir for useful scripts and tools and add a script to find corrupted pkg-config files.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/find-corrupt-pc-files12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/find-corrupt-pc-files b/tools/find-corrupt-pc-files
new file mode 100755
index 0000000..ac77c95
--- /dev/null
+++ b/tools/find-corrupt-pc-files
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [ -z "$1" ]; then
+ CHOST=armv4tl-softfloat-linux-gnueabi
+else
+ CHOST="$1"
+fi
+
+for pkg in $(cd "/usr/${CHOST}/usr/lib/pkgconfig" && grep libdir= *.pc | grep -v 'libdir=${exec_prefix}/lib' | cut -d: -f1); do
+ echo -n "Corrupted pkg-config file found in package: "
+ ROOT="/usr/${CHOST}" qfile "${pkg}"
+done \ No newline at end of file