]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/ps-to-png.scm
Run grand replace for 2015.
[lilypond.git] / scm / ps-to-png.scm
index 0becaeef97dcecbe595f174f305968fc22bc3bb1..e2a0d6cb205665eb10963ad615ea9f54cf498418 100644 (file)
@@ -1,6 +1,6 @@
 ;;;; This file is part of LilyPond, the GNU music typesetter.
 ;;;;
-;;;; Copyright (C) 2005--2012 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; Copyright (C) 2005--2015 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;;;
 ;;;; LilyPond is free software: you can redistribute it and/or modify
 ;;;; it under the terms of the GNU General Public License as published by
                       ((string-contains format-str "jpeg") "jpeg")
                       (else
                        (ly:error "Unknown pixmap format ~a" pixmap-format))))
-          (base (dir-basename ps-name ".ps" ".eps"))
+          (base (string-join
+                 (string-split (dir-basename ps-name ".ps" ".eps") #\%)
+                 "%%"))
           (png1 (format #f "~a.~a" base extension))
           (pngn (format #f "~a-page%d.~a" base extension))
           (page-count (ps-page-count ps-name))
 
      (if (not (= 0 status))
          (begin
-           (map delete-file files)
+           (for-each delete-file files)
            (exit 1)))
 
      (if (and rename-page-1 multi-page?)