FI for FIle -> PH for PlaceHolder
This commit is contained in:
parent
fe0d15509c
commit
b828715f60
1 changed files with 8 additions and 8 deletions
|
@ -5,16 +5,16 @@ PRINT = echo
|
||||||
DATE = $(shell date '+%d-%m-%Y')
|
DATE = $(shell date '+%d-%m-%Y')
|
||||||
|
|
||||||
DIR = $(shell date '+%Y/%m')
|
DIR = $(shell date '+%Y/%m')
|
||||||
FI := new
|
PH := new
|
||||||
|
|
||||||
new:
|
new:
|
||||||
$(MKDIR) $(DIR) 2> /dev/null
|
$(MKDIR) $(DIR) 2> /dev/null
|
||||||
$(TOUCH) $(DIR)/$(FI).md
|
$(TOUCH) $(DIR)/$(PH).md
|
||||||
$(PRINT) "---" > $(DIR)/$(FI).md
|
$(PRINT) "---" > $(DIR)/$(PH).md
|
||||||
$(PRINT) "publish: false" >> $(DIR)/$(FI).md
|
$(PRINT) "publish: false" >> $(DIR)/$(PH).md
|
||||||
$(PRINT) "date: $(DATE)" >> $(DIR)/$(FI).md
|
$(PRINT) "date: $(DATE)" >> $(DIR)/$(PH).md
|
||||||
$(PRINT) "draft: true" >> $(DIR)/$(FI).md
|
$(PRINT) "draft: true" >> $(DIR)/$(PH).md
|
||||||
$(PRINT) "---" >> $(DIR)/$(FI).md
|
$(PRINT) "---" >> $(DIR)/$(PH).md
|
||||||
|
|
||||||
help:
|
help:
|
||||||
$(PRINT) "make FI=new"
|
$(PRINT) "make PH=new"
|
||||||
|
|
Loading…
Reference in a new issue