public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Yuta SATOH" <nigoro.gentoo@0x100.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/
Date: Sun, 14 Oct 2012 06:08:12 +0000 (UTC)	[thread overview]
Message-ID: <1350194866.ff57cdc66510010107d7d91e4cdad9480b6f31d0.yuta_satoh@gentoo> (raw)

commit:     ff57cdc66510010107d7d91e4cdad9480b6f31d0
Author:     Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
AuthorDate: Sun Oct 14 06:07:46 2012 +0000
Commit:     Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> 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
+


             reply	other threads:[~2012-10-14  6:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-14  6:08 Yuta SATOH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-03 11:18 [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/ Yuta SATOH
2018-01-02 13:39 Yuta SATOH
2017-12-07 13:39 Yuta SATOH
2016-08-17 12:16 Yuta SATOH
2015-08-22 22:57 Yuta SATOH
2015-08-22 12:18 Yuta SATOH
2015-08-21 12:43 Yuta SATOH
2015-08-15  0:47 Yuta SATOH
2015-07-13 12:40 Yuta SATOH
2015-07-13 12:38 Yuta SATOH
2015-07-12 15:58 Yuta SATOH
2015-07-12 14:08 Yuta SATOH
2015-07-12 12:09 Yuta SATOH
2015-07-12 10:52 Yuta SATOH
2015-07-12  7:35 Yuta SATOH
2015-07-12  4:43 Yuta SATOH
2015-07-12  0:09 Yuta SATOH
2015-07-11 11:17 Yuta SATOH
2014-10-28 12:03 Yuta SATOH
2013-10-09 11:15 Yuta SATOH
2011-11-07 12:07 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1350194866.ff57cdc66510010107d7d91e4cdad9480b6f31d0.yuta_satoh@gentoo \
    --to=nigoro.gentoo@0x100.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox