summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2022-11-04 15:16:19 -0700
committerLouie S <louie@example.com>2022-11-04 15:16:19 -0700
commit1433e5580757ef140bc64bcc5a904fd0ab9401ed (patch)
tree7e90239b1407bcfccdd78db1f0f735ae86ff18ec
parent18db3871eace8da1cbdc6b2c15a155024254e4e5 (diff)
Replaced all instances of 'mkdir' with 'mkdir -p'; Fixed broken title pattern
-rw-r--r--Makefile10
-rwxr-xr-xsrc/index.rb2
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 622967d..8812bbe 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ clean:
rm -rf $(DOCSET_DIR) $(ARCHIVE_FILE)
tmp:
- mkdir $@
+ mkdir -p $@
$(ARCHIVE_FILE): $(DOCSET)
tar --exclude='.DS_Store' -czf $@ $(DOCSET_DIR)
@@ -32,16 +32,16 @@ $(MANUAL_FILE): tmp
curl -o $@ $(MANUAL_URL)
$(DOCSET_DIR):
- mkdir $@
+ mkdir -p $@
$(CONTENTS_DIR): $(DOCSET_DIR)
- mkdir $@
+ mkdir -p $@
$(RESOURCES_DIR): $(CONTENTS_DIR)
- mkdir $@
+ mkdir -p $@
$(DOCUMENTS_DIR): $(RESOURCES_DIR) $(MANUAL_FILE)
- mkdir $@
+ mkdir -p $@
tar -x -z -f $(MANUAL_FILE) -C $@
$(INFO_PLIST_FILE): src/Info.plist $(CONTENTS_DIR)
diff --git a/src/index.rb b/src/index.rb
index a52e04c..9c66c81 100755
--- a/src/index.rb
+++ b/src/index.rb
@@ -9,7 +9,7 @@ INSERT_SQL = %Q[
INSERT INTO searchIndex(name, type, path) VALUES ('%s','%s','%s');
]
-PATTERN = %r[<title>GNU automake: (.+)</title>]
+PATTERN = %r[<title>(.*)\(automake\)(.*)</title>]
def quote(s)
s.gsub(/&amp;/, '&').gsub(/'/, "\\'")