From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D20A3138010 for ; Sun, 14 Oct 2012 06:08:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10149E0329; Sun, 14 Oct 2012 06:08:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 844F6E0329 for ; Sun, 14 Oct 2012 06:08:14 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF4CF33C394 for ; Sun, 14 Oct 2012 06:08:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5BEDAE5436 for ; Sun, 14 Oct 2012 06:08:12 +0000 (UTC) From: "Yuta SATOH" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yuta SATOH" Message-ID: <1350194866.ff57cdc66510010107d7d91e4cdad9480b6f31d0.yuta_satoh@gentoo> Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/ X-VCS-Repository: proj/gentoo-bsd X-VCS-Files: scripts/migrate_libdir.sh X-VCS-Directories: scripts/ X-VCS-Committer: yuta_satoh X-VCS-Committer-Name: Yuta SATOH X-VCS-Revision: ff57cdc66510010107d7d91e4cdad9480b6f31d0 X-VCS-Branch: master Date: Sun, 14 Oct 2012 06:08:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f2481aa5-b711-4c51-95ba-c300f0e81ad2 X-Archives-Hash: 77439b78b70cb0cee63d954824ab1a5c commit: ff57cdc66510010107d7d91e4cdad9480b6f31d0 Author: Yuta SATOH gentoo gr jp> AuthorDate: Sun Oct 14 06:07:46 2012 +0000 Commit: Yuta SATOH 0x100 com> CommitDate: Sun Oct 14 06:07:46 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=ff57cdc6 added migrate_libdir.sh -- Script for users who have been using old profile on amd64-fbsd , bug 436560 --- scripts/migrate_libdir.sh | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/scripts/migrate_libdir.sh b/scripts/migrate_libdir.sh new file mode 100755 index 0000000..eded8c1 --- /dev/null +++ b/scripts/migrate_libdir.sh @@ -0,0 +1,21 @@ +#!/bin/bash +for d in / /usr /usr/local +do + if [ -L ${d}/lib ] ; then + ls -l ${d}/lib | grep lib64 > /dev/null 2>&1 + if [ $? -eq 0 ] ; then + rm ${d}/lib + if [ -d ${d}/lib64 ] ; then + LD_LIBRARY_PATH="${d}/lib64" mv ${d}/lib64 ${d}/lib + else + mkdir ${d}/lib + fi + ln -s lib ${d}/lib64 + echo "Migrated to ${d}/lib from ${d}/lib64" + else + echo "Migration fails, lib symlink target is not ${d}/lib64." + ls -l ${d}/lib + fi + fi +done +