From 54560b013ff89f4d47b4b94f6ea9d1b2e91e20fd Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 5 Dec 2004 06:19:46 +0000 Subject: [PATCH] Sleep for two seconds before exiting to make sure timestamps for future changes have distinct mod times in the file system. Bug #1982. Add Punjabi orthography. Bug #1671. reviewed by: Keith Packard --- ChangeLog | 13 ++++++++++++- fc-cache/fc-cache.c | 8 ++++++++ fc-lang/pa.orth | 46 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 fc-lang/pa.orth diff --git a/ChangeLog b/ChangeLog index 979f0b9..96dcdf5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,21 @@ +2004-12-04 Owen Taylor + + reviewed by: Keith Packard + + * fc-cache/fc-cache.c: (main): + Sleep for two seconds before exiting to make sure timestamps + for future changes have distinct mod times in the file system. + Bug #1982. + * fc-lang/pa.orth: + Add Punjabi orthography. Bug #1671. + 2004-12-04 Keith Packard * fonts.conf.in: Just remove the FC_FONTDATE -- it has locale issues and annoys redhat multi-arch installs. Now that all X fonts are included without prejudice, the chances of the date being at - all interesting are rather limited. Bug #415. + all interesting are rather limited. Bug #505. * src/Makefile.am: Add copyright and license diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index ee7c0cb..41609a1 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -289,6 +289,14 @@ main (int argc, char **argv) else list = FcConfigGetConfigDirs (config); ret = scanDirs (list, config, argv[0], force, verbose); + /* + * Now we need to sleep a second (or two, to be extra sure), to make + * sure that timestamps for changes after this run of fc-cache are later + * then any timestamps we wrote. We don't use gettimeofday() because + * sleep(3) can't be interrupted by a signal here -- this isn't in the + * library, and there aren't any signals flying around here. + */ + sleep (2); if (verbose) printf ("%s: %s\n", argv[0], ret ? "failed" : "succeeded"); return ret; diff --git a/fc-lang/pa.orth b/fc-lang/pa.orth new file mode 100644 index 0000000..bd726ba --- /dev/null +++ b/fc-lang/pa.orth @@ -0,0 +1,46 @@ +# +# $RCSId:$ +# +# Copyright © 2004 Red Hat, Inc. +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of Red Hat not be used in +# advertising or publicity pertaining to distribution of the software without +# specific, written prior permission. Red Hat makes no +# representations about the suitability of this software for any purpose. It +# is provided "as is" without express or implied warranty. +# +# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. +# +# Punjabi (Gurumukhi script) (HI) +# +# From Unicode coverage for Gurumukhi, with modifications based on +# the 'Lohit Punjabi' font +# +# 0A01-0A03 # Various signs +0A05-0A0A # Independent vowels +0A0F-0A10 +0A13-0A14 +0A15-0A28 # Consonants +0A2A-0A30 +0A32-0A33 +0A35-0A36 +0A38-0A39 +0A3C # Nukta +0A3E-0A42 # Dependent vowel signs +0A47-0A48 +0A4B-0A4C +0A4D # Virama +0A59-0A5C # Additional consonants +# 0A5E # GURMUKHI LETTER FA +# 0A66-0A6F # Digits +0A70-0A74 # Gurmukhi-specific additions -- 2.39.2