local menu fix in pathnames

svn path=/trunk/; revision=32241
This commit is contained in:
2015-10-29 15:43:28 +00:00
parent 6765915aa7
commit 41fc6afd81
2 changed files with 23 additions and 48 deletions

View File

@@ -24,7 +24,7 @@ SELECT := '<localmenu.*</localmenu>'
STYLESHEET := ./tools/buildmenu.xsl
FIND := ./\(.*/\)*\(.*\)\.\([a-z][a-z]\)\.xhtml:[ \t]*\(.*\)
REPLACE := <menuitem language="\3"><dir>\1</dir><link>\2.html</link>\4</menuitem>
REPLACE := <menuitem language="\3"><dir>/\1</dir><link>\2.html</link>\4</menuitem>
sources := $(shell grep -l -R --include='*.xhtml' $(SELECT) . )
@@ -32,7 +32,7 @@ sources := $(shell grep -l -R --include='*.xhtml' $(SELECT) . )
localmenus: localmenuinfo.en.xml
localmenuinfo.en.xml: $(sources)
localmenuinfo.en.xml: $(sources) $(STYLESHEET)
echo \<localmenuset\> > $(HELPERFILE)
grep -R --include='*.xhtml' $(SELECT) .| sed -e 's,$(FIND),$(REPLACE),' >> $(HELPERFILE)
echo \</localmenuset\> >> $(HELPERFILE)