summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-08-28 08:37:44 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-08-28 08:37:44 +0000
commitd9fc4acc572c6647a4f27b838d35d27d805d190e (patch)
tree262a8de35d8c7567312757da5f1f66efdc8cece5 /bin/prepall
downloadportage-multirepo-d9fc4acc572c6647a4f27b838d35d27d805d190e.tar.gz
portage-multirepo-d9fc4acc572c6647a4f27b838d35d27d805d190e.tar.bz2
portage-multirepo-d9fc4acc572c6647a4f27b838d35d27d805d190e.zip
Migration (without history) of the current stable line to subversion.
svn path=/main/branches/2.0/; revision=1941
Diffstat (limited to 'bin/prepall')
-rwxr-xr-xbin/prepall39
1 files changed, 39 insertions, 0 deletions
diff --git a/bin/prepall b/bin/prepall
new file mode 100755
index 00000000..3826f74f
--- /dev/null
+++ b/bin/prepall
@@ -0,0 +1,39 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-src/portage/bin/prepall,v 1.10 2004/10/14 23:31:33 ferringb Exp $
+
+prepallman
+prepallinfo
+prepallstrip
+
+#this should help to ensure that all (most?) shared libraries are executable
+for i in "${D}"opt/*/lib{,32,64} \
+ "${D}"lib{,32,64} \
+ "${D}"usr/lib{,32,64} \
+ "${D}"usr/X11R6/lib{,32,64} ; do
+ [ ! -d "${i}" ] && continue
+
+ for j in "${i}"/*.so.* "${i}"/*.so ; do
+ [ ! -e "${j}" ] && continue
+ [ -L "${j}" ] && continue
+ echo "making executable: /${j/${D}/}"
+ chmod +x "${j}"
+ done
+done
+
+# Move aclocals
+for i in `find "${D}"/ -name "aclocal" -type d 2>/dev/null` ; do
+ [ -z "${i}" ] && continue
+
+ # Strip double '/'
+ dir1="`echo "${i}" | sed -e 's:/\{2,\}:/:g'`"
+ dir2="`echo "${D}/usr/share/aclocal" | sed -e 's:/\{2,\}:/:g'`"
+
+ [ "${dir1}" == "${dir2}" ] && continue
+
+ echo "moving aclocal: /${i/${D}/}"
+ install -d "${D}"usr/share/aclocal
+ mv "${i}"/* "${D}"usr/share/aclocal
+ rm -fr "${i}"
+done