2004-10-25 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * python/lilylib.py (make_ps_images): return list of output files.
+
* lily/simple-spacer.cc (LY_DEFINE): for ragged, we can end with
all springs tight, and still satisfy the constraints.
cmd = r'''gs -s -sDEVICE=pnggray -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=%s -dNOPAUSE -r%d %s -c quit''' % (output_file,
resolution, ps_name)
- return output_file
+ files = glob.glob (re.sub ('%d', '*', output_file))
+ return files
verbose_p = 1
for f in files:
- out = ly.make_ps_images (f, resolution = preview_resolution)
+ outfiles = ly.make_ps_images (f, resolution = preview_resolution)
## FIXME: silly message containing %d
- sys.stderr.write (_ ("Wrote `%s'" % out))
+
+ sys.stderr.write (_ ("Wrote `%s'" % string.join (outfiles, ', ')))
sys.stderr.write ('\n')