(make-ps-images): generate page names, instead of globbing them.
This brings down LilyPond memory usage for make web by a factor
10. (backportme?)
* scm/ps-to-png.scm: remove dir-re function.
(make-ps-images): generate page names, instead of globbing them.
This brings down LilyPond memory usage for make web by a factor
- 10.
+ 10. (backportme?)
* scripts/lilypond-book.py (Lilypond_snippet.png_is_outdated):
don't use glob. With 3000 files, globbing
- Documentation/user/out-www/ can take too much time.
-
+ Documentation/user/out-www/ can take too much time. (backportme?)
+
* lily/lily-guile.cc (gulp_file_to_string): take size argument.
* lily/general-scheme.cc (LY_DEFINE): take optional size argument.
(status (system cmd))
(s (gulp-file d bbox 10240))
(m (string-match BOUNDING_BOX_RE s)))
- (display m)
- (newline)
+
(if m
(list->vector
(map (lambda (x) (string->number (car x))) (vector->list m)))
(let* ((status 0)
(percentage (* 100 (/ 1.0 factor)))
(old (string-append file ".old")))
-
+
(rename-file file old)
(my-system be-verbose
#t
(set! files
(map
(lambda (n)
- (format "~a-page~a.png" base n))
+ (format "~a-page~a.png" base (1+ n)))
(iota page-count)))
(list (format "~a.png" base)))
(begin
(map delete-file files)
(exit 1)))
-
+
(if (and rename-page-1? multi-page?)
(begin
(rename-file (re-sub "%d" "1" pngn) png1)