SPECS: kernel-desktop.spec - hardlink over copy speedup from kerne...
glen
glen at pld-linux.org
Wed Dec 6 00:17:20 CET 2006
Author: glen Date: Tue Dec 5 23:17:20 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- hardlink over copy speedup from kernel.spec
---- Files affected:
SPECS:
kernel-desktop.spec (1.90 -> 1.91)
---- Diffs:
================================================================
Index: SPECS/kernel-desktop.spec
diff -u SPECS/kernel-desktop.spec:1.90 SPECS/kernel-desktop.spec:1.91
--- SPECS/kernel-desktop.spec:1.90 Thu Nov 30 00:43:59 2006
+++ SPECS/kernel-desktop.spec Wed Dec 6 00:17:15 2006
@@ -922,7 +922,15 @@
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+
umask 022
+# test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition
+if cp -al COPYING $RPM_BUILD_ROOT/COPYING 2>/dev/null; then
+ l=l
+ rm -f $RPM_BUILD_ROOT/COPYING
+fi
+
export DEPMOD=%{DepMod}
install -d $RPM_BUILD_ROOT%{_prefix}/src/linux-%{ver}
@@ -931,7 +939,7 @@
KERNEL_BUILD_DIR=`pwd`
%if %{with up} || %{with smp}
-cp -a $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
+cp -a$l $KERNEL_BUILD_DIR/build-done/kernel-*/* $RPM_BUILD_ROOT
%endif
for i in "" smp ; do
@@ -945,7 +953,7 @@
ln -sf linux-%{ver} $RPM_BUILD_ROOT%{_prefix}/src/linux-%{alt_kernel}
-find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{ver}/" ";"
+find . -maxdepth 1 ! -name "build-done" ! -name "." -exec cp -a$l "{}" "$RPM_BUILD_ROOT/usr/src/linux-%{ver}/" ";"
cd $RPM_BUILD_ROOT%{_prefix}/src/linux-%{ver}
@@ -1380,6 +1388,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.91 2006/12/05 23:17:15 glen
+- hardlink over copy speedup from kernel.spec
+
Revision 1.90 2006/11/29 23:43:59 sparky
- 2.6.18.4
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/kernel-desktop.spec?r1=1.90&r2=1.91&f=u
More information about the pld-cvs-commit
mailing list