1 Jan 2009 20:35
Re: [PATCH 3/4] gnulib-tool: abort loops early where possible.
Bruno Haible <bruno <at> clisp.org>
2009-01-01 19:35:33 GMT
2009-01-01 19:35:33 GMT
Hello Ralf,
> * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am)
> (func_emit_tests_Makefile_am, func_import): Abort loops early if
> we already know the answer.
Thanks Ralf. According to your timings, this patch provides a noticeable
speedup and the code remains pretty. I've applied it like this:
--- gnulib-tool.orig 2009-01-01 20:32:57.000000000 +0100
+++ gnulib-tool 2009-01-01 20:32:19.000000000 +0100
<at> <at> -1,6 +1,6 <at> <at>
#! /bin/sh
#
-# Copyright (C) 2002-2008 Free Software Foundation, Inc.
+# Copyright (C) 2002-2009 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
<at> <at> -1590,6 +1590,7 <at> <at>
# - modules list of modules, including 'dummy' if needed
func_modules_add_dummy ()
{
+ # Determine whether any module provides a lib_SOURCES augmentation.
have_lib_SOURCES=
sed_remove_backslash_newline=':a
/\\$/{
<at> <at> -1606,7 +1607,10 <at> <at>
# Ignore .h files since they are not compiled.
case "$file" in
(Continue reading)
RSS Feed