File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ task :parse do
4
4
require "json"
5
5
require "batch"
6
6
7
- Batch . each ( Dir [ "**/*.json" ] ) do |file |
7
+ Dir [ "**/*.json" ] . each do |file |
8
8
JSON . parse ( File . read ( file ) )
9
9
end
10
10
end
Original file line number Diff line number Diff line change 1
1
MD_FILES: =$(shell find commands -name '* .md')
2
+ JSON_FILES: =$(shell find commands -name '* .json')
2
3
TEXT_FILES: =$(patsubst % .md,tmp/% .txt,$(MD_FILES ) )
3
4
SPELL_FILES: =$(patsubst % .txt,% .spell,$(TEXT_FILES ) )
4
5
6
+ default : parse spell
7
+
8
+ parse : $(JSON_FILES )
9
+ rake parse
10
+
5
11
spell : tmp/commands tmp/topics $(SPELL_FILES )
6
12
find tmp -name ' *.spell' | xargs cat > tmp/spelling-errors
7
13
cat tmp/spelling-errors
@@ -30,4 +36,4 @@ tmp/dict: wordlist tmp/commands.txt
30
36
clean :
31
37
rm -rf tmp/*
32
38
33
- .PHONY : clean
39
+ .PHONY : parse spell clean
You can’t perform that action at this time.
0 commit comments