This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Make --enable-nls the default when not cross-compiling


On May 18, 2000, Philipp Thomas <pthomas@suse.de> wrote:

> * Alexandre Oliva (aoliva@cygnus.com) [20000518 06:08]:
>> > Second option, if use of awk is allowed in configure, would be to install
>> > catalogs for those languages in LINGUAS which are indeed a subset of
>> > ALL_LINGUAS.
>> 
>> Why do you need awk to do that?

> Well, I don't exactly need awk, but it would be the easiest and shortest
> solution. It's just that I'm not exactly a shell wizard :)

If both LINGUAS and ALL_LINGUAS are space-separated lists, this should
work (except that there will be a trailing space in LINGUAS, but this
can be easily worked out if it turns out to be a problem :-)

USER_LINGUAS=$LINGUAS
LINGUAS=
for LINGUA in $USER_LINGUAS; do
  case " $ALL_LINGUAS " in
  *" $LINGUA "*) LINGUAS=$LINGUAS"$LINGUA " ;;
  esac
done

-- 
Alexandre Oliva    Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]