diff options
Diffstat (limited to 'src/multiboot')
-rw-r--r-- | src/multiboot/Info.plist | 14 | ||||
-rw-r--r-- | src/multiboot/get_title | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/multiboot/Info.plist b/src/multiboot/Info.plist new file mode 100644 index 0000000..a735d39 --- /dev/null +++ b/src/multiboot/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>multiboot</string> + <key>CFBundleName</key> + <string>Multiboot Specification</string> + <key>DocSetPlatformFamily</key> + <string>multiboot</string> + <key>isDashDocset</key> + <true/> +</dict> +</plist> diff --git a/src/multiboot/get_title b/src/multiboot/get_title new file mode 100644 index 0000000..6bf29fc --- /dev/null +++ b/src/multiboot/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' +} |