summaryrefslogtreecommitdiffstats
path: root/make-links.sh
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-01-29 15:05:21 -0500
committerWill Woods <wwoods@redhat.com>2009-01-29 15:05:21 -0500
commit63a944f11633b50afac5a36c543540937f874721 (patch)
treeecb010dfdf3732540b6c36bcc7a6768b396ad6c4 /make-links.sh
parenta652ee9104fdb4b74288792cd2c1f9aa822039e0 (diff)
downloaddebuginfofs-63a944f11633b50afac5a36c543540937f874721.tar.gz
debuginfofs-63a944f11633b50afac5a36c543540937f874721.tar.xz
debuginfofs-63a944f11633b50afac5a36c543540937f874721.zip
Remove leading dot from exported build-id dir
Diffstat (limited to 'make-links.sh')
-rwxr-xr-xmake-links.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/make-links.sh b/make-links.sh
index af15f30..f9510e5 100755
--- a/make-links.sh
+++ b/make-links.sh
@@ -10,7 +10,7 @@ source config.sh
if [ $# -lt 1 ]; then
echo "Usage: $0 reponame [reponame...]"
- echo "populates $exportdir/.build-id with hardlinks to .debug files."
+ echo "populates $exportdir/build-id with hardlinks to .debug files."
exit 1
fi
@@ -31,8 +31,8 @@ while [ $# -gt 0 ]; do
find $libdir/$reponame -regex '.*/usr/lib/debug/\.build-id/.*\.debug' | \
while read u; do
target=$(readlink --canonicalize $u)
- linkname=${u#*/usr/lib/debug/}
- newlink="$exportdir/$linkname"
+ linkname=${u#*/usr/lib/debug/.build-id/}
+ newlink="$exportdir/build-id/$linkname"
mkdir -p $(dirname $newlink)
ln -f $target $newlink
done