Skip to content

Commit be5cc06

Browse files
Sherry520networm
authored andcommitted
auto download CJK fonts
1 parent db00ba8 commit be5cc06

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
def exec_or_raise(command)
2+
puts `#{command}`
3+
if (! $?.success?)
4+
raise "'#{command}' failed"
5+
end
6+
end
7+
18
namespace :book do
29

10+
# Download asciidoctor-pdf-cjk-kai_gen_gothic
11+
exec_or_raise("asciidoctor-pdf-cjk-kai_gen_gothic-install")
12+
313
# Variables referenced for build
414
version_string = `git describe --tags --abbrev=0`.chomp
515
if version_string.empty?

0 commit comments

Comments
 (0)