From d13b284794b915d81d7faccc6e04c002b5882ffb Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Mon, 2 Jan 2023 10:41:37 -0800 Subject: Change 'automake' to 'GNU Coding Standards' --- .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..6080897 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -/GNU_Make.docset -/GNU_Make.tgz +/GNU_Coding_Standards.docset +/GNU_Coding_Standards.tgz /tmp diff --git a/Makefile b/Makefile index ac6a91b..5c3be74 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DOCSET_NAME = GNU_Automake +DOCSET_NAME = GNU_Coding_Standards 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/prep/standards/standards.html_node.tar.gz +MANUAL_FILE = tmp/standards.html_node.tar.gz DOCSET = $(INFO_PLIST_FILE) $(INDEX_FILE) $(ICON_FILE) diff --git a/README b/README index ff57476..e2d9414 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 Coding Standards 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 Coding Standards: https://savannah.gnu.org/projects/gnustandards - 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 Coding Standards, 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..36517aa 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -3,11 +3,11 @@ CFBundleIdentifier - gnuautomake + gnucodingstandards CFBundleName - GNU Automake + GNU Coding Standards DocSetPlatformFamily - automake + gnustandards isDashDocset diff --git a/src/index.sh b/src/index.sh index f4d898e..75f20a5 100755 --- a/src/index.sh +++ b/src/index.sh @@ -6,14 +6,14 @@ shift get_title() { FILE="$1" - PATTERN=".*\(automake\).*" + PATTERN=".*\(GNU Coding Standards\).*" #Find pattern in file grep -Eo "$PATTERN" "$FILE" | #Remove tag sed 's/<[^>]*>//g' | \ #Remove '(automake)' - sed 's/(automake)//g' | \ + sed 's/(GNU Coding Standards)//g' | \ #Remove trailing space sed 's/[ ]*$//g' | \ #Replace '&' with '&' -- cgit