From 424736829803b532ee6fc3f94d11d27ec012f070 Mon Sep 17 00:00:00 2001
From: Wolfgang Hottgenroth
Date: Wed, 2 May 2018 14:06:34 +0200
Subject: [PATCH] pages
---
Makefile | 13 +++++-
abstracts.inc | 23 +++++++++++
index.html | 71 ++++++++++++++++++++++++++++++++
index.m4 | 5 ++-
m4/indexAbstractsEntry.m4 | 4 +-
m4/indexTOCEntry.m4 | 2 +-
m4/macros.m4 | 3 +-
pages/impressum/article.html | 26 ++++++++++++
pages/impressum/article.m4 | 12 ++++++
pages/keys/article.html | 18 ++++++++
pages/keys/article.m4 | 4 ++
posts/2013-06-26.01/article.html | 57 +++++++++++++++++++++++++
posts/2013-06-26.01/article.m4 | 1 +
posts/2013-06-27.01/article.html | 61 +++++++++++++++++++++++++++
posts/2013-06-27.01/article.m4 | 1 +
toc.inc | 25 +++++++++++
16 files changed, 319 insertions(+), 7 deletions(-)
create mode 100644 abstracts.inc
create mode 100644 index.html
create mode 100644 pages/impressum/article.html
create mode 100644 pages/impressum/article.m4
create mode 100644 pages/keys/article.html
create mode 100644 pages/keys/article.m4
create mode 100644 posts/2013-06-26.01/article.html
create mode 100644 posts/2013-06-27.01/article.html
create mode 100644 toc.inc
diff --git a/Makefile b/Makefile
index 6fdbbf4..ba40bce 100644
--- a/Makefile
+++ b/Makefile
@@ -1,26 +1,35 @@
POSTS = $(shell find ./posts -mindepth 1 -type d)
+PAGES = $(shell find ./pages -mindepth 1 -type d)
.PHONY: all
all:
- $(MAKE) posts
$(MAKE) index
.PHONY: posts
posts:
for d in $(POSTS); do (echo $$d; cd $$d; $(MAKE) -f ../../m4/posts.mk); done
+.PHONY: pages
+pages:
+ for d in $(PAGES); do (echo $$d; cd $$d; $(MAKE) -f ../../m4/posts.mk); done
+
.PHONY: clean
clean:
for d in $(POSTS); do (cd $$d; $(MAKE) -f ../../m4/posts.mk cleanposts); done
+ for d in $(PAGES); do (cd $$d; $(MAKE) -f ../../m4/posts.mk cleanposts); done
-rm -f toc.inc
-rm -f abstracts.inc
-rm -f index.html
.PHONY: index
-index:
+index: posts pages
-rm -f toc.inc
-rm -f abstracts.inc
+ for d in $(PAGES); do (cd $$d; m4 -D URL=$$d/article.html ../../m4/macros.m4 article.m4 ../../m4/indexTOCEntry.m4) >> toc.inc; done
for d in $(POSTS); do (cd $$d; m4 -D URL=$$d/article.html ../../m4/macros.m4 article.m4 ../../m4/indexTOCEntry.m4) >> toc.inc; done
for d in $(POSTS); do (cd $$d; m4 -D URL=$$d/article.html ../../m4/macros.m4 article.m4 ../../m4/indexAbstractsEntry.m4) >> abstracts.inc; done
m4 ./m4/macros.m4 index.m4 > index.html
+.PHONY: install
+devinstall: index
+ rsync -av --delete . /var/www/html
\ No newline at end of file
diff --git a/abstracts.inc b/abstracts.inc
new file mode 100644
index 0000000..4a44ff3
--- /dev/null
+++ b/abstracts.inc
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
2013-06-26 - A Web-controlled Picture Frame
+A father-and-son weekend project with an Arduino, a stepper motor and a couple of family photos.
+read more
+
+
+
+
+
+
+
+
+
2013-06-27 - Children Protection for Postfix-based EMail-Server
+
+read more
+
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..ec3ebfb
--- /dev/null
+++ b/index.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+ my homepage
+
+
+
+
+Projects - just for fun
+
+Overview
+
+
+Abstracts
+
+
+
+
+
+
+
+
+
2013-06-26 - A Web-controlled Picture Frame
+A father-and-son weekend project with an Arduino, a stepper motor and a couple of family photos.
+read more
+
+
+
+
+
+
+
+
+
2013-06-27 - Children Protection for Postfix-based EMail-Server
+
+read more
+
+
+
+
+
diff --git a/index.m4 b/index.m4
index a76cb0b..94d3e88 100644
--- a/index.m4
+++ b/index.m4
@@ -1,9 +1,12 @@
HEADER
+Projects - just for fun
+
+Overview
-
+Abstracts
include(`abstracts.inc')
FOOTER
\ No newline at end of file
diff --git a/m4/indexAbstractsEntry.m4 b/m4/indexAbstractsEntry.m4
index 8d35209..3d63b6c 100644
--- a/m4/indexAbstractsEntry.m4
+++ b/m4/indexAbstractsEntry.m4
@@ -1,5 +1,5 @@
-
TITLE
+DATE - TITLE
ABSTRACT
-read more
+read more
diff --git a/m4/indexTOCEntry.m4 b/m4/indexTOCEntry.m4
index 90ee57a..3807782 100644
--- a/m4/indexTOCEntry.m4
+++ b/m4/indexTOCEntry.m4
@@ -1 +1 @@
-TITLE
+DATE - TITLE
diff --git a/m4/macros.m4 b/m4/macros.m4
index d66c1e5..1627a06 100644
--- a/m4/macros.m4
+++ b/m4/macros.m4
@@ -9,4 +9,5 @@ define(`FOOTER', `