Browse Source

HUE-1603 Rename of markdown files to .html fails for user guide

Romain Rigaux 12 năm trước cách đây
mục cha
commit
d9d3dfd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      docs/Makefile

+ 1 - 1
docs/Makefile

@@ -72,7 +72,7 @@ $(BLD_DIR_DOC)/user-guide: $(wildcard user-guide/*.md)
 	@for x in $? ; do PYTHONPATH=$(DESKTOP_DIR)/core/ext-py/markdown:$(DESKTOP_DIR)/core/ext-py/elementtree \
 	  $(DESKTOP_DIR)/core/ext-py/markdown/bin/markdown \
 	  $$x > $(BLD_DIR_DOC)/$$x ; done
-	@rename 's/\.md/\.html/' $@/*.md
+	@(cd $@; for file in *.md; do mv $${file} $${file/\.md/.html}; done)
 	@echo "--- Generated $@"