summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-02-20 17:09:10 -0500
committerWill Woods <wwoods@redhat.com>2009-02-20 17:09:10 -0500
commit4374f27f688662866c95d86be86a5014ccdd724d (patch)
tree99ffaf083f1002b4703551af734307e0a56e137b
parent8ffddf2cdc52839deafefa37c78607d01121bcc1 (diff)
downloaddebuginfofs-4374f27f688662866c95d86be86a5014ccdd724d.tar.gz
debuginfofs-4374f27f688662866c95d86be86a5014ccdd724d.tar.xz
debuginfofs-4374f27f688662866c95d86be86a5014ccdd724d.zip
Remove obsoleted bash scripts. whew.
-rw-r--r--config.sh25
-rw-r--r--debuginfofs.sysconfig6
-rwxr-xr-xmake-links.sh51
-rwxr-xr-xrsync-fedora-debuginfo.sh61
-rwxr-xr-xunpack-debuginfo.sh82
5 files changed, 0 insertions, 225 deletions
diff --git a/config.sh b/config.sh
deleted file mode 100644
index af1d58f..0000000
--- a/config.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-# config.sh - set some config data for debuginfofs scripts
-# Copyright 2009 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Will Woods <wwoods@redhat.com>
-
-debug="yes"
-verbose="yes"
-libdir="/var/lib/debuginfofs"
-cachedir="/var/cache/debuginfofs"
-exportdir="/var/www/debuginfofs"
diff --git a/debuginfofs.sysconfig b/debuginfofs.sysconfig
deleted file mode 100644
index 4724657..0000000
--- a/debuginfofs.sysconfig
+++ /dev/null
@@ -1,6 +0,0 @@
-# You will need to set this to the correct hostname
-DEBUGINFOFS_SERVER=test1079.test.redhat.com
-# You shouldn't need to edit these under normal circumstances
-BUILDID_URL="http://$DEBUGINFOFS_SERVER/debuginfofs/build-id/"
-BUILDID_MOUNTPOINT="/usr/lib/debug/.build-id"
-BUILDID_ARGS="-o umask=022"
diff --git a/make-links.sh b/make-links.sh
deleted file mode 100755
index 00b6835..0000000
--- a/make-links.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-# make-links.sh - script to populate the global .build-id dir with hardlinks.
-# Copyright 2009 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Will Woods <wwoods@redhat.com>
-
-source config.sh
-
-if [ $# -lt 1 ]; then
- echo "Usage: $0 reponame [reponame...]"
- echo "populates $exportdir/build-id with hardlinks to .debug files."
- exit 1
-fi
-
-if [ -z "$libdir" ]; then
- echo "Couldn't find config.sh - exiting."
- exit 1
-fi
-
-while [ $# -gt 0 ]; do
- reponame="$1"
- shift
-
- if [ ! -d "$libdir/$reponame" ]; then
- echo "$libdir/$reponame does not exist - please unpack debuginfo first"
- continue
- fi
-
- find $libdir/$reponame -regex '.*/usr/lib/debug/\.build-id/.*\.debug' | \
- while read u; do
- target=$(readlink --canonicalize $u)
- linkname=${u#*/usr/lib/debug/.build-id/}
- newlink="$exportdir/build-id/$linkname"
- mkdir -p $(dirname $newlink)
- ln -f $target $newlink
- done
-done
diff --git a/rsync-fedora-debuginfo.sh b/rsync-fedora-debuginfo.sh
deleted file mode 100755
index 18f2a73..0000000
--- a/rsync-fedora-debuginfo.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-# Given arch and version, fetch all debuginfo packages
-# Copyright 2009 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Will Woods <wwoods@redhat.com>
-
-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; shift
-arch=$1; shift
-# 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
diff --git a/unpack-debuginfo.sh b/unpack-debuginfo.sh
deleted file mode 100755
index 3f30c31..0000000
--- a/unpack-debuginfo.sh
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/bash
-# unpack-debuginfo.sh - a simple script to unpack an RPM in a manner
-# usable by debuginfofs.
-# Copyright 2009 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Author: Will Woods <wwoods@redhat.com>
-
-source config.sh
-
-if [ -z "$libdir" ]; then
- echo "Couldn't find config.sh - exiting."
- exit 1
-fi
-
-if [ $# -lt 2 ]; then
- echo "Usage: $0 reponame rpmfile [rpmfile...]"
- echo "unpacks the given rpmfiles under $libdir/reponame"
- exit 1
-fi
-
-function rpm_nevra {
- if [ -z "$1" ]; then return; fi
- n_evra="$(rpm -qp $1 --qf '%{N} %{E}:%{V}-%{R}.%{ARCH}' 2>/dev/null)"
- set -- $n_evra
- n=$1
- evra=$2
- if [ "${evra:0:1}" == ":" ]; then
- evra="0$evra"
- elif [ "${evra:0:6}" == "(none)" ]; then
- evra="0${evra:6}"
- fi
- echo ${n}-${evra}
-}
-
-function unpack_rpm {
- [ "$debug" ] && echo "unpack_rpm($1 $2)" >&2
- rpmfile="$1"
- targetdir="$2"
- rpm2cpio $1 | ( cd $targetdir; cpio --quiet -iumd )
- # Fix dir perms so that anyone can read the data
- find $targetdir -type d -exec chmod a+rx {} +
-}
-
-reponame="$1"
-shift
-
-# TODO perm check
-
-# FIXME only do this if we're sure that reponame is OK?
-mkdir -p "$libdir/$reponame"
-
-if [ ! -d "$libdir/$reponame" ]; then
- echo "$libdir/$reponame does not exist - please create it first."
- exit 1
-fi
-
-while [ $# -gt 0 ]; do
- nevra="$(rpm_nevra $1)"
- first_letter="${nevra:0:1}"
- targetdir="$libdir/$reponame/$first_letter/$nevra"
- if [ -d $targetdir ]; then
- [ "$verbose" ] && echo "$nevra already unpacked; skipping..."
- else
- mkdir -p $targetdir
- unpack_rpm $1 $targetdir
- fi
- shift
-done