From 95d98c95e84891b2809ce88bb6640e6881357451 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Fri, 12 Jul 2024 18:12:13 -0400 Subject: Add Gnu Bison --- .gitmodules | 7 +++++-- Makefile | 3 ++- README.md | 2 ++ src/configs/Flex | 1 + src/configs/GNU_Bison | 1 + src/configs/flex | 1 - src/scripts/gnu/index-terms.sh | 2 +- 7 files changed, 12 insertions(+), 5 deletions(-) create mode 160000 src/configs/Flex create mode 160000 src/configs/GNU_Bison delete mode 160000 src/configs/flex diff --git a/.gitmodules b/.gitmodules index d3fc091..9e590af 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,8 +4,8 @@ [submodule "src/configs/debmake"] path = src/configs/debmake url = https://github.com/lshprung/debmake-dash-docset.git -[submodule "src/configs/flex"] - path = src/configs/flex +[submodule "src/configs/Flex"] + path = src/configs/Flex url = https://github.com/lshprung/flex-dash-docset [submodule "src/configs/GNU_Autoconf"] path = src/configs/GNU_Autoconf @@ -16,3 +16,6 @@ [submodule "src/configs/GNU_Bash"] path = src/configs/GNU_Bash url = https://github.com/lshprung/gnu-bash-dash-docset +[submodule "src/configs/GNU_Bison"] + path = src/configs/GNU_Bison + url = https://github.com/lshprung/gnu-bison-dash-docset.git diff --git a/Makefile b/Makefile index 9e6a4f5..2ec926e 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,11 @@ clean: # All supported docsets should be listed here SUPPORTED_TARGETS = \ debmake \ -flex \ +Flex \ GNU_Autoconf \ GNU_Autoconf_Archive \ GNU_Bash \ +GNU_Bison \ GNU_Make .phony: $(SUPPORTED_TARGETS) diff --git a/README.md b/README.md index 70aa3f6..882d639 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ This table shows which supported docsets support which options. All targets supp |[GNU_Autoconf](https://www.gnu.org/software/autoconf/)| | |✓ | |[GNU_Autoconf_Archive](https://www.gnu.org/software/autoconf-archive/)|||✓| |[GNU_Bash](https://www.gnu.org/software/bash/) | | | | +|[GNU_Bison](https://www.gnu.org/software/bison/) | | | | |[GNU_Make](http://www.gnu.org/software/make/) | |✓ | | ### Build Requirements @@ -48,6 +49,7 @@ This table shows the dependencies for each supported docset. Additionally, all d |[GNU_Autoconf](https://www.gnu.org/software/autoconf/) |✓| |✓| | |[GNU_Autoconf_Archive](https://www.gnu.org/software/autoconf-archive/)|✓| |✓|✓| |[GNU_Bash](https://www.gnu.org/software/bash/) |✓| |✓| | +|[GNU_Bison](https://www.gnu.org/software/bison/) |✓| |✓| | |[GNU_Make](http://www.gnu.org/software/make/) |✓| |✓| | ### Project Structure diff --git a/src/configs/Flex b/src/configs/Flex new file mode 160000 index 0000000..aa014d9 --- /dev/null +++ b/src/configs/Flex @@ -0,0 +1 @@ +Subproject commit aa014d9c128cbc95ca5d6c0522cd3704629a1f11 diff --git a/src/configs/GNU_Bison b/src/configs/GNU_Bison new file mode 160000 index 0000000..9db591c --- /dev/null +++ b/src/configs/GNU_Bison @@ -0,0 +1 @@ +Subproject commit 9db591c61e15cf1c6e3c99a7dfbb17efe2bef5b1 diff --git a/src/configs/flex b/src/configs/flex deleted file mode 160000 index aa014d9..0000000 --- a/src/configs/flex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit aa014d9c128cbc95ca5d6c0522cd3704629a1f11 diff --git a/src/scripts/gnu/index-terms.sh b/src/scripts/gnu/index-terms.sh index 0eaffa7..e82aff2 100755 --- a/src/scripts/gnu/index-terms.sh +++ b/src/scripts/gnu/index-terms.sh @@ -23,7 +23,7 @@ insert_index_terms() { insert_term() { LINK="$1" - NAME="$(echo "$LINK" | pup -p 'a text{}' | sed 's/\"\"//g' | tr -d \\n)" + NAME="$(echo "$LINK" | pup -p 'a text{}' | sed 's/"/\"\"/g' | tr -d \\n)" PAGE_PATH="$(echo "$LINK" | pup -p 'a attr{href}')" insert "$DB_PATH" "$NAME" "$TYPE" "$PAGE_PATH" -- cgit