Skip to content

Commit

Permalink
Makefile: add draft and undraft targets
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 31, 2024
1 parent 35e3452 commit 783fca6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ publish: blog
today:
mkdir $(shell date '+%Y-%m-%d')

.PHONE: draft
draft:
mv $(FILE) $(shell dirname $(FILE))/.$(shell basename $(FILE))

.PHONE: undraft
undraft:
mv $(FILE) $(shell dirname $(FILE))/$(shell echo $(shell basename $(FILE)) | tail -c +2)

.PHONY: clean
clean:
rm -rf blog

0 comments on commit 783fca6

Please sign in to comment.