summaryrefslogtreecommitdiffstats
path: root/extract-distro.sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-01-06 21:19:33 -0800
committerRoland McGrath <roland@redhat.com>2009-01-06 21:19:33 -0800
commit5fee4451816ab63111d2675b3999b96a4b8b16af (patch)
treede34878ae714fe9f485083beb864781181729e9f /extract-distro.sh
parent23fc1b5ab44476fe22a9bf1de337a263c87a5b74 (diff)
downloaddebuginfo-test-scripts-5fee4451816ab63111d2675b3999b96a4b8b16af.tar.gz
debuginfo-test-scripts-5fee4451816ab63111d2675b3999b96a4b8b16af.tar.xz
debuginfo-test-scripts-5fee4451816ab63111d2675b3999b96a4b8b16af.zip
rejigger directory layout
Diffstat (limited to 'extract-distro.sh')
-rwxr-xr-xextract-distro.sh17
1 files changed, 9 insertions, 8 deletions
diff --git a/extract-distro.sh b/extract-distro.sh
index ef8f452..348e7f9 100755
--- a/extract-distro.sh
+++ b/extract-distro.sh
@@ -7,11 +7,12 @@ PATH="$srcdir:$PATH"
here=`pwd`
df -h .
-for distro; do
- for dir in $distro/*/debug/; do
- echo "considering ${dir}..."
- (cd "$dir" && ls | extract-rpm.sh "$here") | pack-debuginfo.sh &
- done
- wait
- df -h .
-done
+
+find "$@" -name debug -o -name Debuginfo | (
+ echo 'all: \'
+ sed 's,^.*$,do/& \\,'
+ echo
+ echo 'do/%:;(cd $* && ls | extract-rpm.sh "$$here") | pack-debuginfo.sh'
+) | make -f - -r here="$here" -s -j$(getconf _NPROCESSORS_ONLN)
+
+df -h .