diff options
author | Louie S <louie@example.com> | 2023-09-15 09:50:45 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-15 09:50:45 -0400 |
commit | e7eda80bcdf575188ab98a4454a4515217967990 (patch) | |
tree | 97a25659832d089da8487500a35e34299a146459 /src/index-page.sh | |
parent | a1c45a5d707095f503ff94981d91bfceb26f14c4 (diff) |
Add multiboot target
Diffstat (limited to 'src/index-page.sh')
-rwxr-xr-x | src/index-page.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/index-page.sh b/src/index-page.sh index 0742470..becfd48 100755 --- a/src/index-page.sh +++ b/src/index-page.sh @@ -5,17 +5,13 @@ # shellcheck source=./lib/insert . "$(dirname "$0")"/lib/insert -DB_PATH="$1" +CALLER="$1" shift -get_title() { - FILE="$1" +. "$(dirname "$0")"/"$CALLER"/get_title - pup -p -f "$FILE" 'title text{}' | \ - tr -d \\n | \ - sed 's/^GNU[^:]*: //' | \ - sed 's/\"/\"\"/g' -} +DB_PATH="$1" +shift insert_pages() { # Get title and insert into table for each html file |