kadischi/post_install_scripts 01prelink.sh, 1.5, 1.6 Makefile.am, 1.6, 1.7 01prelink.py, 1.2, NONE

Jasper O'neal Hartline (autopsy) fedora-extras-commits at redhat.com
Sun Jul 9 02:22:29 UTC 2006


Author: autopsy

Update of /cvs/devel/kadischi/post_install_scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5465/kadischi/post_install_scripts

Modified Files:
	Makefile.am 
Added Files:
	01prelink.sh 
Removed Files:
	01prelink.py 
Log Message:
BASH has less overhead than Python, let's keep this as a shell script.


Index: 01prelink.sh
===================================================================
RCS file: 01prelink.sh
diff -N 01prelink.sh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ 01prelink.sh	9 Jul 2006 02:22:27 -0000	1.6
@@ -0,0 +1,18 @@
+#!/bin/bash
+#
+# chroot to build directory and prelink
+
+ . /etc/kadischi/kadischi.conf
+
+SYSDIR=$1
+
+if [ -f $SYSDIR/etc/prelink.conf ]; then
+   echo "Prelinking.. "
+   /usr/sbin/chroot $SYSDIR /bin/mount -t proc /proc /proc || sleep 1
+   /usr/sbin/chroot $SYSDIR /usr/sbin/prelink --all >/dev/null 2>&1
+   /usr/sbin/chroot $SYSDIR /bin/umount /proc || sleep 1
+   exit 0
+else
+   echo "No prelink.conf found.. won't prelink."
+   exit 0
+fi


Index: Makefile.am
===================================================================
RCS file: /cvs/devel/kadischi/post_install_scripts/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile.am	5 Jul 2006 01:17:00 -0000	1.6
+++ Makefile.am	9 Jul 2006 02:22:27 -0000	1.7
@@ -1,5 +1,5 @@
-PYTHON_FILES = 01prelink.py 03fstab.py 05fsclean.py 06sysconfig.py
-BASH_FILES = 02install.sh 07accounts.sh
+PYTHON_FILES = 03fstab.py 05fsclean.py 06sysconfig.py
+BASH_FILES = 01prelink.sh 02install.sh 07accounts.sh
 PERL_FILES = 04userconfig.pl
 
 pisdir = $(pkgdatadir)/post_install_scripts


--- 01prelink.py DELETED ---




More information about the fedora-extras-commits mailing list