diff options
author | Louie S <louie@example.com> | 2023-09-15 10:03:05 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-15 10:03:05 -0400 |
commit | 8b24f247ba26e77623a3d3d183b12b8eec849b8d (patch) | |
tree | 5827f3a477de307e4a43b56da75fa5046de9d6bc /src | |
parent | e7eda80bcdf575188ab98a4454a4515217967990 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/multiboot2/Info.plist | 14 | ||||
-rw-r--r-- | src/multiboot2/get_title | 9 |
2 files changed, 23 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleIdentifier</key> + <string>multiboot2</string> + <key>CFBundleName</key> + <string>Multiboot2 Specification</string> + <key>DocSetPlatformFamily</key> + <string>multiboot2</string> + <key>isDashDocset</key> + <true/> +</dict> +</plist> 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' +} |