From 234d8b9d0fb568e2ad0f6ec9b88fbae87e7145ae Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Fri, 30 Dec 2022 12:48:13 -0800 Subject: Rudimentary docset creation --- src/index.sh | 63 +++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 24 deletions(-) (limited to 'src/index.sh') diff --git a/src/index.sh b/src/index.sh index e81a0f7..e506ae4 100755 --- a/src/index.sh +++ b/src/index.sh @@ -6,7 +6,7 @@ shift get_title() { FILE="$1" - PATTERN=".*\(Autoconf\).*" + PATTERN="<[tT][iI][tT][lL][eE]>.*" #Find pattern in file grep -Eo "$PATTERN" "$FILE" | @@ -18,6 +18,8 @@ get_title() { sed 's/[ ]*$//g' | \ #Replace '&' with '&' sed 's/&/&/g' | \ + # ReplACE '–' with '-' + sed 's/–/-/g' | \ #Replace '<' with '<' sed 's/</