summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-14 13:09:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-14 13:09:23 +0000
commit206648ed2ece3521b5d0dc7378dc13342e9a4d1b (patch)
treea1ee145ec3dc7ca1a8329402d7b45a77e22d38bc
parent6622f850d4887c4b7efb36ab22f2923bee80ddde (diff)
doh, XMLLINT only exported on --with-lang builds
-rw-r--r--helpcontent2/helpers/update_tree.pl6
-rw-r--r--helpcontent2/source/auxiliary/makefile.mk5
2 files changed, 7 insertions, 4 deletions
diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl
index 80befc2d4e..7408b315bc 100644
--- a/helpcontent2/helpers/update_tree.pl
+++ b/helpcontent2/helpers/update_tree.pl
@@ -309,7 +309,11 @@ sub processtreefiles {
unlink "$tree_dest/$lng/$tv" ;
my $ret=mv $treetmpfile , "$tree_dest/$lng/$tv$inpath" or &terminate("Cannot write to $tree_dest/$lng/$tv$inpath - Error $!");
my $ret=mv "$tree_dest/$lng/$tv$inpath" , "$tree_dest/$lng/$tv" or &terminate("Cannot write to $tree_dest/$lng/$tv - Error $!");
- system("$xmllint --noout --noent $tree_dest/$lng/$tv") == 0 or &terminate("$tree_dest/$lng/$tv is illformed xml (xmllint)" );
+ #xmllint is crashing on windows, fixme
+ if( $^O ne 'cygwin' )
+ {
+ system("$xmllint --noout --noent $tree_dest/$lng/$tv") == 0 or &terminate("$tree_dest/$lng/$tv is illformed xml ($xmllint on $^O)" );
+ }
}
} else {
&terminate("Cannot write to $tvout");
diff --git a/helpcontent2/source/auxiliary/makefile.mk b/helpcontent2/source/auxiliary/makefile.mk
index 049879b29d..d969e3fa3e 100644
--- a/helpcontent2/source/auxiliary/makefile.mk
+++ b/helpcontent2/source/auxiliary/makefile.mk
@@ -47,6 +47,8 @@ TREEFILES = \
.INCLUDE : target.mk
.EXPORT : LOCALIZESDF LOCALIZATION_FOUND TRYSDF L10N_MODULE
+XMLLINT !:=$(XMLLINT)
+.EXPORT : XMLLINT
ALLTAR : aux_dirs $(COMMONMISC)$/treefiles.done $(COMMONBIN)$/helpimg.ilst
@@ -62,9 +64,6 @@ aux_alllangiso:=$(foreach,i,$(aux_alllangiso_all) $(foreach,j,$(help_exist) $(eq
WITH_LANG!:=$(aux_alllangiso)
.EXPORT : WITH_LANG
-XMLLINT !:=$(XMLLINT)
-.EXPORT : XMLLINT
-
LOCTREEFILES:=$(foreach,i,$(aux_alllangiso) $(foreach,j,$(TREEFILES) $(COMMONMISC)$/$i$/$j))
.ELSE #IF "$(WITH_LANG)"!=""
aux_langdirs:=en-US