summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2000-10-07 17:51:37 +0000
committerAchim Gottinger <achim@gentoo.org>2000-10-07 17:51:37 +0000
commit774e1cccdc17771acc8720bd7aa2f5a1668b01a5 (patch)
tree5960d264325d516e97bc2216b600115e46be7617 /sys-apps
parent*** empty log message *** (diff)
downloadgentoo-2-774e1cccdc17771acc8720bd7aa2f5a1668b01a5.tar.gz
gentoo-2-774e1cccdc17771acc8720bd7aa2f5a1668b01a5.tar.bz2
gentoo-2-774e1cccdc17771acc8720bd7aa2f5a1668b01a5.zip
*** empty log message ***
Diffstat (limited to 'sys-apps')
-rwxr-xr-xsys-apps/portage/files/bin/prepallinfo28
-rwxr-xr-xsys-apps/portage/files/bin/prepallman27
-rwxr-xr-xsys-apps/portage/files/bin/prepallstrip36
-rwxr-xr-xsys-apps/portage/files/bin/prepallstrip~37
-rwxr-xr-xsys-apps/portage/files/bin/preplib13
5 files changed, 141 insertions, 0 deletions
diff --git a/sys-apps/portage/files/bin/prepallinfo b/sys-apps/portage/files/bin/prepallinfo
new file mode 100755
index 000000000000..283e45b1b8f4
--- /dev/null
+++ b/sys-apps/portage/files/bin/prepallinfo
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+z=`find ${D} -name "info" -type d`
+
+for x in ${z}
+do
+ rm -f ${x}/dir
+ w=`echo ${x}/*.info*`
+ if [ "${w}" != "${x}"'/*.info*' ]
+ then
+ for y in ${w}
+ do
+ if [ -h ${y} ]
+ then
+ #symlink
+ linkto=`ls -l ${y} | sed -e "s:${D}::" | awk '{ printf ("%s.gz",$11) } '`
+ echo "$linkto $y.gz"
+ ln -sf ${linkto} ${y}.gz
+ rm ${y}
+ else
+ gzip -f -9 ${y}
+ fi
+ done
+ fi
+done
+
+
+
diff --git a/sys-apps/portage/files/bin/prepallman b/sys-apps/portage/files/bin/prepallman
new file mode 100755
index 000000000000..66041292bbaf
--- /dev/null
+++ b/sys-apps/portage/files/bin/prepallman
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+z=`find ${D} -name "man?" -type d`
+
+for x in ${z}
+do
+ w=`echo ${x}/*.?`
+ if [ "${w}" != "${x}"'/*.?' ]
+ then
+ for y in ${w}
+ do
+ if [ -h ${y} ]
+ then
+ #symlink
+ linkto=`ls -l ${y} | sed -e "s:${D}::" | awk '{ printf ("%s.gz",$11) } '`
+ echo "$linkto $y.gz"
+ ln -sf ${linkto} ${y}.gz
+ rm ${y}
+ else
+ gzip -f -9 ${y}
+ fi
+ done
+ fi
+done
+
+
+
diff --git a/sys-apps/portage/files/bin/prepallstrip b/sys-apps/portage/files/bin/prepallstrip
new file mode 100755
index 000000000000..2c77940a1696
--- /dev/null
+++ b/sys-apps/portage/files/bin/prepallstrip
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+
+if [ -n "${DEBUG}" ]
+then
+ exit
+fi
+echo "test:"
+z=`find ${D} -perm +444 -type f`
+
+for x in $z
+do
+ f=`file $x`
+ if [ "${f/*LSB executable*/1}" == "1" ]
+ then
+ echo $x
+ strip ${x}
+ fi
+ if [ "${f/*LSB shared object*/1}" == "1" ]
+ then
+ echo $x
+ strip ${x}
+ fi
+done
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sys-apps/portage/files/bin/prepallstrip~ b/sys-apps/portage/files/bin/prepallstrip~
new file mode 100755
index 000000000000..a4f5851460e6
--- /dev/null
+++ b/sys-apps/portage/files/bin/prepallstrip~
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+
+if [ -n "${DEBUG}" ]
+then
+ exit
+fi
+echo "test:"
+z=`find ${D} -perm +444 -type f`
+
+for x in $z
+do
+ echo $x
+ f=`file $x`
+ if [ "${f/*LSB executable*/1}" == "1" ]
+ then
+ echo $x
+ strip ${x}
+ fi
+ if [ "${f/*LSB shared object*/1}" == "1" ]
+ then
+ echo $x
+ strip ${x}
+ fi
+done
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sys-apps/portage/files/bin/preplib b/sys-apps/portage/files/bin/preplib
new file mode 100755
index 000000000000..4ea0b221f133
--- /dev/null
+++ b/sys-apps/portage/files/bin/preplib
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ -z "$1" ]
+then
+ z=${D}usr/lib
+else
+ z=${D}$1/lib
+fi
+
+ldconfig -n -N ${z}
+
+
+