@@ -30,29 +30,30 @@ def makefile_builder(name, tag):
30
30
content .target ('$(public-branch-output)/' + name_tagged + '.pdf:$(public-branch-output)/' + name_tagged + '-$(current-branch).pdf' )
31
31
content .job ('@bin/create-link $(notdir $<) $(notdir $@) $@' )
32
32
33
- content .section_break ( 'Variables, Interaction, and Integration ' )
33
+ content .comment ( 'adding ' + name + '.pdf to the build dependency. ' )
34
34
content .append_var ('PDF_OUTPUT' , '$(public-branch-output)/' + name_tagged + '.pdf' )
35
35
36
36
return content .makefile
37
37
38
38
class MongoDBManualPdfMakefile (object ):
39
- def __init__ (self ):
40
- self .output = []
39
+ def __init__ (self , makefile = [] ):
40
+ self .makefile = makefile
41
41
for pdfs in pdfs_to_build :
42
42
for item in makefile_builder (pdfs [0 ], pdfs [1 ]):
43
- self .output .append (item )
43
+ self .makefile .append (item )
44
44
45
- self .output .append ('manual-pdfs:$(PDF_OUTPUT)' )
45
+ self .makefile .append ('\n ' )
46
+ self .makefile .append ('manual-pdfs:$(PDF_OUTPUT)' )
46
47
47
48
def print_content (self ):
48
- for line in self .output :
49
- print (line )
49
+ for line in self .makefile :
50
+ print (line . rstrip ( ' \n ' ) )
50
51
51
52
def write (self , filename ):
52
53
with open (filename , 'w' ) as f :
53
- for line in self .output :
54
+ for line in self .makefile :
54
55
f .write (line )
55
-
56
+ f . write ( ' \n ' )
56
57
print ('[meta-build]: built "' + sys .argv [1 ] + '" to specify pdf builders.' )
57
58
58
59
def main ():
0 commit comments