summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-07-12 18:12:13 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-07-12 18:12:13 -0400
commit95d98c95e84891b2809ce88bb6640e6881357451 (patch)
tree1eabb07dbce951492afc939dc75e6efb9a59e42e
parent95ece0ad7ff78f3665b4fd3b7ba1e406cdfef455 (diff)
Add Gnu Bison
-rw-r--r--.gitmodules7
-rw-r--r--Makefile3
-rw-r--r--README.md2
m---------src/configs/Flex (renamed from src/configs/flex)0
m---------src/configs/GNU_Bison0
-rwxr-xr-xsrc/scripts/gnu/index-terms.sh2
6 files changed, 10 insertions, 4 deletions
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
-Subproject aa014d9c128cbc95ca5d6c0522cd3704629a1f1
+Subproject aa014d9c128cbc95ca5d6c0522cd3704629a1f1
diff --git a/src/configs/GNU_Bison b/src/configs/GNU_Bison
new file mode 160000
+Subproject 9db591c61e15cf1c6e3c99a7dfbb17efe2bef5b
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"