From ceb3507a8fca872770b3dcd7e5c5b36179ab95b0 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Fri, 30 May 2008 12:42:47 -0700 Subject: Import dist_3.5-236.orig.tar.gz [dgit import orig dist_3.5-236.orig.tar.gz] --- mcon/U/locale.U | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 mcon/U/locale.U (limited to 'mcon/U/locale.U') diff --git a/mcon/U/locale.U b/mcon/U/locale.U new file mode 100644 index 0000000..659c827 --- /dev/null +++ b/mcon/U/locale.U @@ -0,0 +1,70 @@ +?RCS: $Id$ +?RCS: +?RCS: Copyright (c) 2006, Christian Biere +?RCS: +?RCS: You may redistribute only under the terms of the Artistic License, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic License; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?MAKE:locale localeexp: Getfile Loc Oldconfig Prefixit Prefixup \ + cat prefixexp package spackage enablenls +?MAKE: -pick add $@ %< +?Y:TOP +?S:locale: +?S: This variable holds the name of the directory in which the user wants +?S: to put locale library files for the package in question. It is most +?S: often a local directory such as /usr/share/locale. Programs using this +?S: variable must be prepared to deal with filename expansion. +?S: Only meaningful when $enablenls holds true. +?S:. +?S:localeexp: +?S: This variable is the same as the locale variable, but is filename expanded +?S: at configuration time, for convenient use in your makefiles. +?S: Only meaningful when $enablenls holds true. +?S:. +?C:LOCALE: +?C: This symbol holds the place where localization files for the package +?C: are expected to be found. Be prepared to use ~name expansion, or rely +?C: on LOCALE_EXP to have an expanded value computed at configuration time. +?C: Only meaningful when ENABLE_NLS is defined. +?C:. +?C:LOCALE_EXP: +?C: This symbol holds the possibly ~name expanded place where localization +?C: files for the package are expected to be found. +?C: Only meaningful when ENABLE_NLS is defined. +?C:. +?H:#define LOCALE "$locale" +?H:#define LOCALE_EXP "$localeexp" +?H:. +: determine where locale files go +case "$enablenls" in +false) ;; +*) + set locale locale + eval $prefixit + case "$locale" in + '') + dflt=`./loc . "." $prefixexp/share/locale \ + /usr/share/locale /usr/local/share/locale` + set dflt + eval $prefixup + ;; + *) dflt="$locale";; + esac + fn=d~ + $cat <