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:
Danny Robson 2019-04-04 11:40:02 +11:00
parent e10c864d53
commit 1882bcc7e1

View File

@ -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))