"Speed up" shell script by using built-in `:', do not access trivial commands on file system.
Signed-off-by: Oleg Verych <[EMAIL PROTECTED]> --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6.19-rc2-git7/Makefile =================================================================== --- linux-2.6.19-rc2-git7.orig/Makefile 2006-10-23 07:01:59.114793301 +0000 +++ linux-2.6.19-rc2-git7/Makefile 2006-10-23 07:04:48.088422559 +0000 @@ -480,7 +480,7 @@ echo " include/linux/autoconf.h or $@ are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ - /bin/false) + !:) endif # KBUILD_EXTMOD @@ -663,7 +663,7 @@ $(cmd_sysmap) $@ System.map; \ if [ $$? -ne 0 ]; then \ rm -f $@; \ - /bin/false; \ + !:; \ fi; $(verify_kallsyms) endef @@ -702,7 +702,7 @@ $(Q)cmp -s System.map .tmp_System.map || \ (echo Inconsistent kallsyms data; \ echo Try setting CONFIG_KALLSYMS_EXTRA_PASS; \ - rm .tmp_kallsyms* ; /bin/false) + rm .tmp_kallsyms* ; !:) endef # Update vmlinux version before link @@ -863,7 +863,7 @@ $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ];then \ echo " $(srctree) is not clean, please run 'make mrproper'"; \ echo " in the '$(srctree)' directory."; \ - /bin/false; \ + !:; \ fi; $(Q)if [ ! -d include2 ]; then mkdir -p include2; fi; $(Q)ln -fsn $(srctree)/include/asm-$(ARCH) include2/asm -- ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel