avoid redundant work in "make check"
Bruno Haible
bruno@clisp.org
Fri Sep 20 07:16:00 GMT 2002
When "make check" is run twice in a row, it will in the second run regenerate
some locales that it has generated in the first run. This is unnecessary.
It happens because the Makefile looks at the timestamp of localename/LC_CTYPE
- but due to a localedef optimization this file is not touched if it can be
hardlinked to another locale's LC_CTYPE file.
2002-09-17 Bruno Haible <bruno@clisp.org>
* localedata/gen-locale.sh: Touch the LC_CTYPE file, to provide the
timestamp the Makefile looks at.
diff -r -c3 glibc-20020910.bak/localedata/gen-locale.sh glibc-20020910/localedata/gen-locale.sh
*** glibc-20020910.bak/localedata/gen-locale.sh Tue Jul 10 22:59:10 2001
--- glibc-20020910/localedata/gen-locale.sh Tue Sep 17 02:22:04 2002
***************
*** 1,6 ****
#! /bin/sh
# Generate test locale files.
! # Copyright (C) 2000-2001 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
--- 1,6 ----
#! /bin/sh
# Generate test locale files.
! # Copyright (C) 2000-2002 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
***************
*** 37,42 ****
--- 37,43 ----
"Outputdir: \"${out}\" failed"
exit 1
fi
+ touch ${common_objpfx}localedata/$out/LC_CTYPE
}
locfile=`echo $locfile|sed 's|.*/\([^/]*/LC_CTYPE\)|\1|'`
More information about the Libc-alpha
mailing list