File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,9 @@ def main():
158158 if args .verbose :
159159 logger .setLevel (DEBUG )
160160
161- build = BundleBuilder (** vars (args ))
161+ genesis = "cd " + os .getcwd ()
162+ genesis += "\n " + " " .join (sys .argv [:])
163+ build = BundleBuilder (** vars (args ), genesis = genesis )
162164
163165 if args .list_archs :
164166 build .list_archs ()
Original file line number Diff line number Diff line change @@ -131,7 +131,11 @@ def install(self, threads):
131131 """#!/usr/bin/env bash
132132
133133# Configure script, generated by ecbundle version ${ecbundle_version}
134- #
134+
135+ <<GENESIS
136+ ${genesis}
137+ GENESIS
138+
135139# The environment in the file "env.sh" will be sourced
136140# before the build is configured
137141
@@ -370,6 +374,9 @@ def keep_going(self):
370374 def retry (self ):
371375 return self .get ("retry" , False )
372376
377+ def genesis (self ):
378+ return self .get ("genesis" , None )
379+
373380 def retry_verbose (self ):
374381 return self .get ("retry_verbose" , False )
375382
@@ -558,6 +565,7 @@ def create_scripts(self):
558565 rerun_cmake_if_needed = self .backend ().rerun_cmake_if_needed (),
559566 build = build ,
560567 install = self .backend ().install (self .threads ()),
568+ genesis = self .genesis (),
561569 )
562570 scripts = [
563571 ("clean.sh" , clean_sh ),
You can’t perform that action at this time.
0 commit comments