lib/templates/Rakefile_hiki_sync in hikiutils-0.2.3.12 vs lib/templates/Rakefile_hiki_sync in hikiutils-0.2.3.13
- old
+ new
@@ -34,11 +34,11 @@
stdout.split("\n").each{|line|
files << line.split(/\s+/)[-1]
}
r_files = files.reverse[0..-4]
r_files.each{|file|
- print "remove #{file}[ynqlA]? ".red
+ print "remove #{file}? [ynqlA] ".red
input=STDIN.gets.chomp
case input
when 'y'
p command="hiki --remove #{file}"
system command
@@ -47,11 +47,11 @@
p command="hiki -l #{$basename}"
system command
when 'q'
exit
when 'A'
- print "\nAre you sure[Yn]? ".magenta
+ print "\nAre you sure? [Yn] ".magenta
input2 = STDIN.gets.chomp
case input2
when 'Y'
r_files.each{|file| system "hiki --remove #{file}"}
p target = File.join($hiki_dir,'cache','attach',$basename)
@@ -187,9 +187,10 @@
$bounding_box=" 0 0 737 553"
end
desc "すべてのhikiファイルをlatex変換"
task :latex_all do
+ check_bounding_box
p entries=Dir.entries('.')
main_file = latex_loop(entries,opts={:main=>true})
latex_loop(entries)
cont=""
p reg_exp = Regexp.new("#{$basename}_(.+)")