init: join the generated commands with '&&'
This allows us to directly use the output of the script in other scripts.
This commit is contained in:
parent
e10c864d53
commit
1882bcc7e1
7
init.py
7
init.py
@ -71,6 +71,9 @@ if __name__ == '__main__':
|
||||
|
||||
accumulated += [f'"-D{key}={val}"' for key, val in vars.items()]
|
||||
accumulated += args
|
||||
cmds = [
|
||||
f"cp {os.path.join(self_dir, 'CACHEDIR.tag.in')} CACHEDIR.tag",
|
||||
f"cmake {source_dir} {' '.join(accumulated)}",
|
||||
]
|
||||
|
||||
print(f"cmake {source_dir} {' '.join(accumulated)}")
|
||||
print(f"cp {os.path.join(self_dir, 'CACHEDIR.tag.in')} CACHEDIR.tag")
|
||||
print(" && ".join(cmds))
|
||||
|
Loading…
Reference in New Issue
Block a user