From 4ce760d0e6a8e2a939e45afce78045bf6ead9828 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 10 Oct 2021 11:12:14 -0400 Subject: [PATCH] txt2html: rename to txt2pre i plan on adding support for other output markups (e.g. atom and rss) --- GNUmakefile | 4 ++-- txt2html => txt2pre | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) rename txt2html => txt2pre (95%) diff --git a/GNUmakefile b/GNUmakefile index d791a55..ae9eab7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -8,7 +8,7 @@ # without any warranty. -gen-html = perl txt2html $(1) < $< > $@ +gen-html = perl txt2pre $(1) < $< > $@ port := $(if $(port),$(port),8000) TXT := $(filter-out bandali-pubkey.txt bandali.txt,$(wildcard *.txt)) @@ -39,6 +39,6 @@ serve: watch: while true; do \ echo $(TXT) $(TXT_FA) bandali.txt fa/bandali.fa.txt \ - GNUmakefile txt2html | tr " " "\n" | entr -d make; done + GNUmakefile txt2pre | tr " " "\n" | entr -d make; done .PHONY: all clean serve watch diff --git a/txt2html b/txt2pre similarity index 95% rename from txt2html rename to txt2pre index e6dc30b..e288a69 100644 --- a/txt2html +++ b/txt2pre @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# txt2html --- simple script to convert my site's txt files to html +# txt2pre --- convert my site's txt files to `pre'-based html # Copyright (C) 2014-2021 all contributors # Copyright (c) 2021 Amin Bandali @@ -17,8 +17,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -# This simple script borrows from the wonderful `txt2pre' from -# public-inbox.git, under AGPLv3+, with a few additions of my own. +# This simple script borrows from a script of the same name from the +# wonderful public-inbox project, under AGPLv3+, with additions of +# my own. use strict; -- 2.20.1