From: Bruno Haible Date: Mon, 8 Jan 2001 13:56:48 +0000 (+0000) Subject: Move locale.alias to intl/, and install it. X-Git-Tag: v0.10.36~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e0946155ff25af7f640f921dfd8a6fccf6a6b2b;p=thirdparty%2Fgettext.git Move locale.alias to intl/, and install it. --- diff --git a/Admin/plans b/Admin/plans index eb63be262..fd891267e 100644 --- a/Admin/plans +++ b/Admin/plans @@ -59,9 +59,6 @@ Things we plan to do. Comments welcome. - Change bug report address to bug-gettext instead of bug-gnu-utils@gnu.org -- install locale.alias from intl/, using a refcount mechanism like for - charset.alias - - Split xgettext into a language dependent part and a language independent part. diff --git a/intl/ChangeLog b/intl/ChangeLog index 697855d90..2139ef64c 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,10 @@ +2000-12-30 Bruno Haible + + * locale.alias: New file, moved here from ../misc/locale.alias. Add + "Packages using this file" line. + * Makefile.in (DISTFILES.common): Add locale.alias. + (install-exec, uninstall): Install/deinstall locale.alias. + 2000-10-30 Ulrich Drepper * dcigettext.c (guess_category_value): For libc always use the diff --git a/intl/Makefile.in b/intl/Makefile.in index 7fe3e2251..f84c71994 100644 --- a/intl/Makefile.in +++ b/intl/Makefile.in @@ -72,7 +72,7 @@ plural.$lo localcharset.$lo CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo GETTOBJS = intl-compat.$lo DISTFILES.common = ChangeLog Makefile.in po2msg.sin po2tbl.sin \ -config.charset ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) +config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) DISTFILES.normal = VERSION DISTFILES.gettext = libintl.glibc intlh.inst.in plural.c @@ -150,6 +150,15 @@ install-exec: all sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ + $(mkinstalldirs) $(DESTDIR)$(localedir); \ + test -f $(DESTDIR)$(localedir)/locale.alias \ + && orig=$(DESTDIR)$(localedir)/locale.alias \ + || orig=$(srcdir)/locale.alias; \ + temp=$(DESTDIR)$(localedir)/t-locale.alias; \ + dest=$(DESTDIR)$(localedir)/locale.alias; \ + sed -f ref-add.sed $$orig > $$temp; \ + $(INSTALL_DATA) $$temp $$dest; \ + rm -f $$temp; \ else \ : ; \ fi @@ -177,17 +186,29 @@ uninstall: else \ : ; \ fi - if test '@USE_INCLUDED_LIBINTL@' = yes \ - && test -f $(DESTDIR)$(libdir)/charset.alias; then \ - temp=$(DESTDIR)$(libdir)/t-charset.alias; \ - dest=$(DESTDIR)$(libdir)/charset.alias; \ - sed -f ref-del.sed $$dest > $$temp; \ - if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ - rm -f $$dest; \ - else \ - $(INSTALL_DATA) $$temp $$dest; \ + if test '@USE_INCLUDED_LIBINTL@' = yes; then \ + if test -f $(DESTDIR)$(libdir)/charset.alias; then \ + temp=$(DESTDIR)$(libdir)/t-charset.alias; \ + dest=$(DESTDIR)$(libdir)/charset.alias; \ + sed -f ref-del.sed $$dest > $$temp; \ + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ + rm -f $$dest; \ + else \ + $(INSTALL_DATA) $$temp $$dest; \ + fi; \ + rm -f $$temp; \ + fi; \ + if test -f $(DESTDIR)$(localedir)/locale.alias; then \ + temp=$(DESTDIR)$(localedir)/t-locale.alias; \ + dest=$(DESTDIR)$(localedir)/locale.alias; \ + sed -f ref-del.sed $$dest > $$temp; \ + if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ + rm -f $$dest; \ + else \ + $(INSTALL_DATA) $$temp $$dest; \ + fi; \ + rm -f $$temp; \ fi; \ - rm -f $$temp; \ else \ : ; \ fi diff --git a/misc/locale.alias b/intl/locale.alias similarity index 98% rename from misc/locale.alias rename to intl/locale.alias index d6fa49636..927a10cf6 100644 --- a/misc/locale.alias +++ b/intl/locale.alias @@ -26,6 +26,8 @@ # it with the rest of us. Send it using the `glibcbug' script to # bugs@gnu.org. +# Packages using this file: + bokmal nb_NO.ISO-8859-1 bokmål nb_NO.ISO-8859-1 catalan ca_ES.ISO-8859-1 diff --git a/misc/ChangeLog b/misc/ChangeLog index 8569f56f9..7731c0d1c 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,9 @@ +2000-12-30 Bruno Haible + + * locale.alias: Move to ../intl. + * Makefile.am (EXTRA_DIST): Remove locale.alias. + (localedir, locale_DATA): Remove variables. + 2000-12-08 Bruno Haible * gettextize.in: Preserve RCS and CVS subdirs in intl/. diff --git a/misc/Makefile.am b/misc/Makefile.am index aaf822dca..05f9ddd70 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the misc subdirectory of the GNU NLS Utilities -## Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +## Copyright (C) 1995, 1996, 1997, 2000 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 @@ -19,13 +19,9 @@ AUTOMAKE_OPTIONS = 1.2 gnits -localedir = $(datadir)/locale - EXTRA_DIST = combine-sh gettext.perl gettext-sh magic.add tcl_gettext.c \ -README-Tcl po-mode.el locale.alias +README-Tcl po-mode.el DISTCLEANFILES = gettextize lisp_LISP = po-mode.el bin_SCRIPTS = gettextize - -locale_DATA = locale.alias