Browse Source

fix issue with $(EDITOR)

pull/1/head
Brett Langdon 12 years ago
parent
commit
09026e249e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Makefile

+ 2
- 2
Makefile View File

@ -16,7 +16,7 @@ add_article:
dir=`echo $$title | sed "s/ /-/g"`;\ dir=`echo $$title | sed "s/ /-/g"`;\
mkdir -p $(ARTICLE_DIR)/$$dir;\ mkdir -p $(ARTICLE_DIR)/$$dir;\
cat base.md | sed "s/{title}/$$title/g" | sed s/{date}/`date "+%Y-%m-%d"`/g> $(ARTICLE_DIR)/$$dir/index.md;\ cat base.md | sed "s/{title}/$$title/g" | sed s/{date}/`date "+%Y-%m-%d"`/g> $(ARTICLE_DIR)/$$dir/index.md;\
$(EDITOR) $(ARTICLE_DIR)/$$dir/index.md
$$EDITOR $(ARTICLE_DIR)/$$dir/index.md
remove_article: remove_article:
@echo "Enter Article Title: " @echo "Enter Article Title: "
@ -28,6 +28,6 @@ edit_article:
@echo "Enter Article Title: " @echo "Enter Article Title: "
@read title;\ @read title;\
dir=`echo $$title | sed "s/ /-/g"`;\ dir=`echo $$title | sed "s/ /-/g"`;\
$(EDITOR) $(ARTICLE_DIR)/$$dir/index.md
$$EDITOR $(ARTICLE_DIR)/$$dir/index.md
.PHONY: build clean preview add_article remove_article edit_article .PHONY: build clean preview add_article remove_article edit_article

Loading…
Cancel
Save