From f18cd7a7da3ee094807519093f06c54eae0c7991 Mon Sep 17 00:00:00 2001 From: Farid Date: Wed, 2 Oct 2024 02:13:36 +0400 Subject: More readable build-page script --- build-page | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'build-page') diff --git a/build-page b/build-page index f4b89c7..2ed8ef3 100644 --- a/build-page +++ b/build-page @@ -1,7 +1,5 @@ #!/bin/sh -print_head() -{ cat << EOF @@ -9,43 +7,22 @@ cat << EOF - ${1} Suleyman Farajli
-EOF -} - -print_menu() -{ -cat << EOF -EOF -} - -print_copyleft() -{ -cat << EOF +$(sed '1 s///' ${1} | smu)


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 +EOF -- cgit v1.2.3