Kaydet (Commit) 65d24329 authored tarafından David Tardon's avatar David Tardon

do not second-guess help langs for installation

Change-Id: I48484ca81008fe650aa9fa0eb561e3b2ff33399c
üst 2147d08c
...@@ -16,6 +16,7 @@ $(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc :| $(call gb_Cust ...@@ -16,6 +16,7 @@ $(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc :| $(call gb_Cust
$(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc : $(SRCDIR)/scp2/macros/macro.pl $(BUILDDIR)/config_host.mk.stamp $(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc : $(SRCDIR)/scp2/macros/macro.pl $(BUILDDIR)/config_host.mk.stamp
$(call gb_Helper_abbreviate_dirs,\ $(call gb_Helper_abbreviate_dirs,\
export COMPLETELANGISO_VAR='$(gb_ScpTemplateTarget_LANGS)' && \ export COMPLETELANGISO_VAR='$(gb_ScpTemplateTarget_LANGS)' && \
export HELP_LANGS='$(gb_HELP_LANGS)' && \
$(PERL) $< -verbose -o $@ -c $(BUILDDIR)/config_host.mk.stamp \ $(PERL) $< -verbose -o $@ -c $(BUILDDIR)/config_host.mk.stamp \
) )
......
...@@ -36,20 +36,13 @@ if ( !defined $completelangiso_var) { ...@@ -36,20 +36,13 @@ if ( !defined $completelangiso_var) {
exit 1; exit 1;
} }
my $poorhelplocalizations_var = $ENV{WITH_POOR_HELP_LOCALIZATIONS};
$poorhelplocalizations_var = $completelangiso_var if ( $poorhelplocalizations_var eq "ALL" );
my %poorhelplocalizations;
foreach $lang (split (/ /, $poorhelplocalizations_var)) {
next if ( $lang eq "en-US");
$poorhelplocalizations{$lang}++;
}
if (!args_require_build()) { if (!args_require_build()) {
print STDERR "No new languages, or config. Keeping old file\n"; print STDERR "No new languages, or config. Keeping old file\n";
exit 0; exit 0;
} }
my @completelangiso = split " +", $completelangiso_var; my @completelangiso = split " +", $completelangiso_var;
my @helplangs = split " +", $ENV{HELP_LANGS};
open OUTFILE, ">$outfile" or die "$0 ERROR: cannot open $outfile for writing!\n"; open OUTFILE, ">$outfile" or die "$0 ERROR: cannot open $outfile for writing!\n";
...@@ -151,8 +144,7 @@ sub write_EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG ...@@ -151,8 +144,7 @@ sub write_EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG
{ {
my $first = 1; my $first = 1;
print OUTFILE "#define EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG(name) "; print OUTFILE "#define EXTRA_ALL_GOOD_HELP_LOCALIZATIONS_LANG(name) ";
foreach $lang (@completelangiso) { foreach $lang (@helplangs) {
next if ( $poorhelplocalizations{$lang} );
print OUTFILE ";" unless $first; print OUTFILE ";" unless $first;
$first = 0; $first = 0;
print OUTFILE "\\\n\tName ($lang) = EXTRAFILELISTNAME(HelpTarget/,name,/$lang)"; print OUTFILE "\\\n\tName ($lang) = EXTRAFILELISTNAME(HelpTarget/,name,/$lang)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment