diff options
| author | Will Woods <wwoods@redhat.com> | 2009-01-28 17:09:22 -0500 |
|---|---|---|
| committer | Will Woods <wwoods@redhat.com> | 2009-01-28 17:09:22 -0500 |
| commit | 30002cb5f5222b2824868fe2179d039b3937d7fe (patch) | |
| tree | f64a6b9db2fb7197c3c6ffdd1b3722c44c0ab66d | |
| parent | 09dcb9bd3ba4e9ddc53246c01b6d1ae9672c9112 (diff) | |
| download | debuginfofs-30002cb5f5222b2824868fe2179d039b3937d7fe.tar.gz debuginfofs-30002cb5f5222b2824868fe2179d039b3937d7fe.tar.xz debuginfofs-30002cb5f5222b2824868fe2179d039b3937d7fe.zip | |
get ver/arch from commandline for rsync-fedora-debuginfo
| -rwxr-xr-x | rsync-fedora-debuginfo.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/rsync-fedora-debuginfo.sh b/rsync-fedora-debuginfo.sh new file mode 100755 index 0000000..d392ce7 --- /dev/null +++ b/rsync-fedora-debuginfo.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# Given arch and version, fetch all debuginfo packages + +source config.sh + +if [ -z "$cachedir" ]; then + echo "Couldn't find config.sh - exiting." + exit 1 +fi + +if [ $# -lt 2 ]; then + echo "usage: $0 VERSION ARCH" + echo "Fetches and prepares all the debuginfo data for the given ver/arch," + echo "then runs unpack-debuginfo.sh and make-links.sh on them." + echo + echo "RPMs are saved under $cachedir." + exit 1 +fi + +ver=$1 +arch=$2 +# FIXME sanity check ver/arch + +rpmdir="$cachedir/debuginfo-$ver-$arch" + +# FIXME use mirrormanager / yum repo files / something +server="rsync://wallace.redhat.com/fedora-enchilada/linux" + +# This is dumb. Use a dict or something. +testing=$server/updates/testing/$ver/$arch/debug +updates=$server/updates/$ver/$arch/debug +fedora=$server/releases/$ver/Everything/$arch/debug + +mkdir -p $rpmdir +rsync -avz $@ --progress $testing $rpmdir/testing +rsync -avz $@ --progress $updates $rpmdir/updates +rsync -avz $@ --progress $fedora $rpmdir/fedora +find $rpmdir/testing -name "*.rpm" \ + -exec ./unpack-debuginfo.sh testing-$ver-$arch {} + +find $rpmdir/updates -name "*.rpm" \ + -exec ./unpack-debuginfo.sh updates-$ver-$arch {} + +find $rpmdir/fedora -name "*.rpm" \ + -exec ./unpack-debuginfo.sh fedora-$ver-$arch {} + +./make-links.sh testing-$ver-$arch updates-$ver-$arch fedora-$ver-$arch |
