From 103fc181d27e302babd4cd652305384969517480 Mon Sep 17 00:00:00 2001 From: Robert Landers Date: Thu, 1 Aug 2024 15:22:04 +0200 Subject: [PATCH] refactor to use a different type --- .gitattributes | 2 +- Makefile | 6 +++--- published/{template.txt => template.ptxt} | 0 template.txt => template.ptxt | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename published/{template.txt => template.ptxt} (100%) rename template.txt => template.ptxt (100%) diff --git a/.gitattributes b/.gitattributes index b927e5f..b8fc5e9 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -*.txt binary +*.ptxt binary diff --git a/Makefile b/Makefile index f42a0b9..33420e8 100644 --- a/Makefile +++ b/Makefile @@ -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 $< $@ diff --git a/published/template.txt b/published/template.ptxt similarity index 100% rename from published/template.txt rename to published/template.ptxt diff --git a/template.txt b/template.ptxt similarity index 100% rename from template.txt rename to template.ptxt