mkbok 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/mkbok +3 -2
- data/lib/mkbok_version.rb +1 -1
- metadata +1 -1
data/bin/mkbok
CHANGED
@@ -29,12 +29,12 @@ option_parser = OptionParser.new do |opts|
|
|
29
29
|
opts.on("-b","--build FORMAT","build format:epub,pdf,html. seperated by ','") do |format|
|
30
30
|
formatOptions = format.split(",")
|
31
31
|
formatOptions.each do | fmt |
|
32
|
-
|
32
|
+
puts fmt
|
33
33
|
unless ["pdf","epub","html"].include?(fmt)
|
34
34
|
raise ArgumentError,"FORMAT must be one of 'pdf,epub,html' format"
|
35
35
|
end
|
36
36
|
end
|
37
|
-
options["
|
37
|
+
options["build"] = format
|
38
38
|
end
|
39
39
|
opts.on("-d","--debug","debug") do
|
40
40
|
options["debug"] = true
|
@@ -73,6 +73,7 @@ $here = Dir.getwd
|
|
73
73
|
$root = File.join($here)
|
74
74
|
$outDir = File.join($root, 'pdf')
|
75
75
|
options["name"] = File.basename(Dir.getwd) unless options["name"]
|
76
|
+
options["outputformat"] = options["build"].split(',')
|
76
77
|
|
77
78
|
puts options.inspect if options["debug"]
|
78
79
|
|
data/lib/mkbok_version.rb
CHANGED