Browse Source

add edit_article command

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

+ 7
- 1
Makefile View File

@ -24,4 +24,10 @@ remove_article:
dir=`echo $$title | sed "s/ /-/g"`;\
rm -rf $(ARTICLE_DIR)/$$dir
.PHONY: build clean preview add_article remove_article
edit_article:
@echo "Enter Article Title: "
@read title;\
dir=`echo $$title | sed "s/ /-/g"`;\
emacs $(ARTICLE_DIR)/$$dir/index.md
.PHONY: build clean preview add_article remove_article edit_article

Loading…
Cancel
Save