forked from hyphenation/tex-hyphen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
25 lines (22 loc) · 855 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if ENV['RACK_ENV'] == "production"
task default: %w[build]
else
require 'rspec/core/rake_task'
task default: %w[validate spec build]
end
task :validate do
ruby "tools/yaml/validate-header.rb hyph-utf8/tex/generic/hyph-utf8/patterns/tex"
end
task :spec do
task = RSpec::Core::RakeTask.new
task.pattern = File.join(File.expand_path('../hyph-utf8/source/generic/hyph-utf8', __FILE__), RSpec::Core::RakeTask::DEFAULT_PATTERN)
end
# TODO: Rubocop
task :build do
ruby "hyph-utf8/source/generic/hyph-utf8/generate-converters.rb"
ruby "hyph-utf8/source/generic/hyph-utf8/generate-pattern-loaders.rb"
ruby "hyph-utf8/source/generic/hyph-utf8/generate-ptex-patterns.rb"
ruby "hyph-utf8/source/generic/hyph-utf8/generate-tl-files.rb"
ruby "hyph-utf8/source/generic/hyph-utf8/generate-plain-patterns.rb"
system "tools/make_CTAN_zip.sh"
end