mirror of
https://github.com/sunaku/tamzen-font.git
synced 2024-09-11 11:55:40 +03:00
Rakefile: more helpful error when screenshot fails
This commit is contained in:
parent
2ba4b2dff6
commit
ca9c2c1c4f
6
Rakefile
6
Rakefile
@ -260,11 +260,11 @@ rule %r{^png/.+\.png$} => [->(png){ png.sub('png', 'bdf').ext('bdf') }, 'png',
|
||||
'-fg', 'black',
|
||||
'-bg', 'white',
|
||||
'-T', src,
|
||||
'-font', @bdf_to_x11[src],
|
||||
'-font', @bdf_to_x11.fetch(src),
|
||||
'-geometry', "#{lines.first.length}x#{lines.length}",
|
||||
'-e', [
|
||||
'tput civis', # hide the cursor
|
||||
"cat #{sample_text_file.path.inspect}", # show sample text
|
||||
'tput civis', # hide the cursor
|
||||
"cat #{sample_text_file.path.inspect}", # show sample text
|
||||
"import -window $WINDOWID #{dst.inspect}", # take a screenshot
|
||||
].join(' && ')
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user