From f497ad60e2191188f6bef05d022a07d17c65a357 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 16 Jun 2020 01:39:18 +0200 Subject: [PATCH] web: Don't duplicate the html header. Now that all web pages are in a single directory, we can get rid of some duplication by using header.html also to create index.html. --- Makefile | 5 +++-- web/index.html.in | 34 ---------------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/Makefile b/Makefile index 7f598d5..fb8a01d 100644 --- a/Makefile +++ b/Makefile @@ -150,8 +150,9 @@ www: web/index.html web/osl.png web/api.html web/osl.png: web/osl.pdf Makefile convert -scale 200x200 $< $@ -web/index.html: oslfsck.1 web/index.html.in INSTALL README QUICK_START - sed -e '/@README@/,$$d' web/index.html.in > $@ +web/index.html: oslfsck.1 web/header.html web/index.html.in INSTALL README QUICK_START + cat web/header.html > $@ + sed -e '/@README@/,$$d' web/index.html.in >> $@ markdown < README >> $@ sed -e '1,/@README@/d' -e '/@INSTALL@/,$$d' web/index.html.in >> $@ markdown < INSTALL >> $@ diff --git a/web/index.html.in b/web/index.html.in index addc4f4..edd7745 100644 --- a/web/index.html.in +++ b/web/index.html.in @@ -1,37 +1,3 @@ - - - - - OSL - The object storage layer library - - - - - - - - - -
- osl logo - -

The lightweight storage library

-
- -
- - [README] - [Download] - [INSTALL] - [Quick Start] - [API] - [License] - [Contact] - [man page] - -
-

README -- 2.39.5