local menu fix in pathnames
svn path=/trunk/; revision=32241
This commit is contained in:
4
Makefile
4
Makefile
@@ -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)
|
||||
|
Reference in New Issue
Block a user