summaryrefslogtreecommitdiffstats
path: root/extract-distro.sh
blob: 9f0c1ab8c8548df02ca1f1284dd6162856475b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

srcdir=`dirname $0`
srcdir=`(cd "$srcdir"; pwd)`
PATH="$srcdir:$PATH"

here=`pwd`

df -h .

find "$@" \( -name debug -o -name Debuginfo \) -print -prune -o \
     	  \( -name os -prune \) | (
  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 .