Skip to content

Commit

Permalink
refactor to use a different type
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Aug 1, 2024
1 parent 421b320 commit 103fc18
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*.txt binary
*.ptxt binary
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
DRAFTS := $(wildcard drafts/*.md)
PUBLISHED := $(DRAFTS:drafts/%.md=published/%.txt)
PUBLISHED := $(DRAFTS:drafts/%.md=published/%.ptxt)

all: $(PUBLISHED) .git/hooks/pre-commit

drafts/template.md: template.txt
drafts/template.md: template.ptxt
@echo "Creating draft from template"
src/convert-to-md.sh template.txt drafts/template.md

published/%.txt: drafts/%.md
published/%.ptxt: drafts/%.md
@echo "Converting $< to $@"
@mkdir -p $(dir $@)
src/convert-from-md.sh $< $@
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 103fc18

Please sign in to comment.