This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
avoid redundant work in "make check"
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 16:17:09 +0200 (CEST)
- Subject: avoid redundant work in "make check"
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|'`