From c38235650e5deb06f578406c3331dda3eab5371b Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sun, 8 Sep 2024 19:07:16 +0400 Subject: Makefile and build-page added --- build-page | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 build-page (limited to 'build-page') diff --git a/build-page b/build-page new file mode 100644 index 0000000..a2ea34e --- /dev/null +++ b/build-page @@ -0,0 +1,49 @@ +#!/bin/sh + +print_head() +{ +cat << EOF + + + + + + + ${1} + + + + Suleyman Farajli +
+ +EOF +} + +print_menu() +{ + echo '' +} + +print_copyleft() +{ +cat << EOF +


copyleft (c) 2024 Suleyman Farajli

+ + +" +EOF +} + +filename="${1}" +title=$(cat "${filename}" | head -n1 | sed 's///') + +print_head "${title}" +print_menu +# Remove the title on the first line, if exists +sed '1 s///' ${filename} | smu +print_copyleft -- cgit v1.2.3