From d44e7f620f4970ab72bd7979cd8751857f683915 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 15 Sep 2023 10:11:41 -0400 Subject: Improve design, fix guide names for info-reader target --- src/texinfo/get_title | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/texinfo/get_title (limited to 'src/texinfo/get_title') diff --git a/src/texinfo/get_title b/src/texinfo/get_title new file mode 100644 index 0000000..b501501 --- /dev/null +++ b/src/texinfo/get_title @@ -0,0 +1,8 @@ +get_title() { + FILE="$1" + + pup -p -f "$FILE" 'title text{}' | \ + tr -d \\n | \ + sed 's/ (GNU[^)]*)$//' | \ + sed 's/\"/\"\"/g' +} -- cgit