summaryrefslogtreecommitdiff
path: root/scm
diff options
context:
space:
mode:
authorValentin Villenave <valentin@villenave.net>2016-04-21 17:35:35 +0200
committerValentin Villenave <valentin@villenave.net>2016-04-28 10:30:37 +0200
commit7d3fa8cb4799303da8e5fd2ead35f1ac32180157 (patch)
tree9d4210fcc9cd466ac0decaa7c958353920463c4c /scm
parentbe7ca7a201a8ae07323adf04f29ce48c407e8d0a (diff)
'embed-source-code should disregard Scheme-generated input
(... for now at least). This fixes the include-string.ly regtest, and a few others, that previously could not be compiled when enabling the -dembed-source-code switch.
Diffstat (limited to 'scm')
-rw-r--r--scm/framework-ps.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/scm/framework-ps.scm b/scm/framework-ps.scm
index d3234b3329..ca3372ca92 100644
--- a/scm/framework-ps.scm
+++ b/scm/framework-ps.scm
@@ -483,8 +483,11 @@
(if (ly:get-option 'embed-source-code)
(let ((source-list (delete-duplicates
(remove (lambda (str)
- (string-contains str
- (ly:get-option 'datadir)))
+ (or
+ (string-contains str
+ (ly:get-option 'datadir))
+ (string=? str
+ "<included string>")))
(ly:source-files)))))
(display "\n/pdfmark where
{pop} {userdict /pdfmark /cleartomark load put} ifelse" port)