From 8b24f247ba26e77623a3d3d183b12b8eec849b8d Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 15 Sep 2023 10:03:05 -0400 Subject: Add multiboot2 target --- src/multiboot2/Info.plist | 14 ++++++++++++++ src/multiboot2/get_title | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/multiboot2/Info.plist create mode 100644 src/multiboot2/get_title (limited to 'src/multiboot2') diff --git a/src/multiboot2/Info.plist b/src/multiboot2/Info.plist new file mode 100644 index 0000000..dea7cfe --- /dev/null +++ b/src/multiboot2/Info.plist @@ -0,0 +1,14 @@ + + + + + CFBundleIdentifier + multiboot2 + CFBundleName + Multiboot2 Specification + DocSetPlatformFamily + multiboot2 + isDashDocset + + + diff --git a/src/multiboot2/get_title b/src/multiboot2/get_title new file mode 100644 index 0000000..6bf29fc --- /dev/null +++ b/src/multiboot2/get_title @@ -0,0 +1,9 @@ +get_title() { + FILE="$1" + + + pup -p -f "$FILE" 'title text{}' | \ + tr -d \\n | \ + sed 's/^Multiboot[^:]*: //' | \ + sed 's/\"/\"\"/g' +} -- cgit