FI for FIle -> PH for PlaceHolder

This commit is contained in:
Mylloon 2024-11-17 18:36:33 +01:00
parent fe0d15509c
commit b828715f60
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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"