about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-07 20:40:28 +0000
committerEric Wong <e@80x24.org>2019-05-08 22:56:34 +0000
commite50b4ffa4ac7ac07cd4922459b292734b0e370bd (patch)
treeb4456affedabd66ef169af1a4d043d91593cc265
parent5af9839f734c4eb5c0982c6b75e1425c3187f88f (diff)
downloadpublic-inbox-e50b4ffa4ac7ac07cd4922459b292734b0e370bd.tar.gz
We can fix the redundant rule in include.mk which causes
make(1) on FreeBSD to complain; but HTML docs will likely
still require GNU make.
-rw-r--r--Documentation/design_www.txt2
-rw-r--r--Documentation/hosted.txt2
-rw-r--r--Documentation/include.mk5
-rwxr-xr-xDocumentation/txt2pre3
4 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/design_www.txt b/Documentation/design_www.txt
index cd715b2a..f15a5562 100644
--- a/Documentation/design_www.txt
+++ b/Documentation/design_www.txt
@@ -1,3 +1,5 @@
+PublicInbox::WWW (PSGI interface) design notes
+
 URL and anchor naming
 ---------------------
 
diff --git a/Documentation/hosted.txt b/Documentation/hosted.txt
index 42926d25..0b1fb92a 100644
--- a/Documentation/hosted.txt
+++ b/Documentation/hosted.txt
@@ -1,3 +1,5 @@
+unofficially hosted mirrors at public-inbox.org
+
 In addition to eating our own dogfood at <https://public-inbox.org/meta/>,
 public-inbox.org hosts unofficial archives for several other projects
 as a service to their users and to further test our own software.
diff --git a/Documentation/include.mk b/Documentation/include.mk
index 02cbef30..9089e062 100644
--- a/Documentation/include.mk
+++ b/Documentation/include.mk
@@ -87,8 +87,9 @@ dtxt := $(addprefix Documentation/, $(dtxt)) $(mantxt)
 Documentation/standards.txt : Documentation/standards.perl
         $(PERL) $< >$@+ && mv $@+ $@
 
-%.html: %.txt
-        TITLE="$(basename $(<F))" $(txt2pre)
+Documentation/%.html: Documentation/%.txt
+        $(txt2pre)
+
 %.html: %
         $(txt2pre)
 
diff --git a/Documentation/txt2pre b/Documentation/txt2pre
index 4c4b2ca2..9a81a24a 100755
--- a/Documentation/txt2pre
+++ b/Documentation/txt2pre
@@ -11,8 +11,7 @@ use PublicInbox::Linkify;
 use PublicInbox::Hval qw(ascii_html);
 
 my $str = eval { local $/; <> };
-my $title = $ENV{TITLE};
-($title) = ($str =~ /\A([^\n]+)/) unless $title;
+my ($title) = ($str =~ /\A([^\n]+)/);
 $title = ascii_html($title);
 my $l = PublicInbox::Linkify->new;
 $str = $l->linkify_1($str);