]> git.donarmstrong.com Git - lilypond.git/commitdiff
remove dir-re function.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Aug 2005 16:07:41 +0000 (16:07 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Aug 2005 16:07:41 +0000 (16:07 +0000)
(make-ps-images): generate page names, instead of globbing them.
This brings down LilyPond memory usage for make web by a factor
10. (backportme?)

ChangeLog
scm/ps-to-png.scm

index 02960840588b095de95e88f0c0becca49f8ede62..cec3a6f1d793c2b68a6e5e4efd2b5ad74c6b4234 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,12 +3,12 @@
        * 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.
index ee16349a83cd8673979d58c06b934d824d7b3585..ab0ac5d672adfc01b851b51e10a24006628b7186 100644 (file)
@@ -68,8 +68,7 @@
         (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)