From 7c54a2a3e7fee50832afd10380f9d5e7b69557ec Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Sat, 31 Dec 2022 13:57:22 -0800 Subject: Set for libtool --- .gitignore | 4 ++-- Makefile | 6 +++--- README | 6 +++--- src/Info.plist | 6 +++--- src/index.sh | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 9941ba2..8f114b9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -/GNU_Make.docset -/GNU_Make.tgz +/GNU_Libtool.docset +/GNU_Libtool.tgz /tmp diff --git a/Makefile b/Makefile index ac6a91b..2f78d92 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DOCSET_NAME = GNU_Automake +DOCSET_NAME = GNU_Libtool DOCSET_DIR = $(DOCSET_NAME).docset CONTENTS_DIR = $(DOCSET_DIR)/Contents @@ -10,8 +10,8 @@ INDEX_FILE = $(RESOURCES_DIR)/docSet.dsidx ICON_FILE = $(DOCSET_DIR)/icon.png ARCHIVE_FILE = $(DOCSET_NAME).tgz -MANUAL_URL = https://www.gnu.org/software/automake/manual/automake.html_node.tar.gz -MANUAL_FILE = tmp/automake.html_node.tar.gz +MANUAL_URL = https://www.gnu.org/software/libtool/manual/libtool.html_node.tar.gz +MANUAL_FILE = tmp/libtool.html_node.tar.gz DOCSET = $(INFO_PLIST_FILE) $(INDEX_FILE) $(ICON_FILE) diff --git a/README b/README index ff57476..0bcd4cb 100644 --- a/README +++ b/README @@ -1,9 +1,9 @@ -Here is a script and a Makefile for generating a GNU Automake docset for Dash. The script is loosely based on benzado's script for GNU Make https://github.com/benzado/gnu-make-dash-docset. +Here is a script and a Makefile for generating a GNU Libtool docset for Dash. The script is loosely based on benzado's script for GNU Make https://github.com/benzado/gnu-make-dash-docset. -- GNU Automake: https://www.gnu.org/software/automake/ +- GNU Libtool: https://www.gnu.org/software/libtool/ - Dash: https://kapeli.com/dash -To generate a docset from the latest edition of the GNU Automake Manual, simply +To generate a docset from the latest edition of the GNU Libtool Manual, simply execute `make` from the same directory as this README file. The latest edition will be downloaded from www.gnu.org and packaged appropriately. diff --git a/src/Info.plist b/src/Info.plist index f94b2c9..ae6c813 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -3,11 +3,11 @@ CFBundleIdentifier - gnuautomake + gnulibtool CFBundleName - GNU Automake + GNU Libtool DocSetPlatformFamily - automake + libtool isDashDocset diff --git a/src/index.sh b/src/index.sh index f4d898e..5f0842a 100755 --- a/src/index.sh +++ b/src/index.sh @@ -6,14 +6,14 @@ shift get_title() { FILE="$1" - PATTERN=".*\(automake\).*" + PATTERN=".*\(Libtool\).*" #Find pattern in file grep -Eo "$PATTERN" "$FILE" | #Remove tag sed 's/<[^>]*>//g' | \ #Remove '(automake)' - sed 's/(automake)//g' | \ + sed 's/(Libtool)//g' | \ #Remove trailing space sed 's/[ ]*$//g' | \ #Replace '&' with '&' -- cgit