Allow buiding all the things

This commit is contained in:
Greg Hellings
2023-08-12 13:54:23 -05:00
parent 4955599f41
commit 9577e133eb
6 changed files with 17 additions and 8 deletions
+10 -3
View File
@@ -51,9 +51,16 @@ def get_parser(args, unsupported=set()):
def main():
# Equivalent of `set -e` in Bash
#$RAISE_SUBPROC_ERROR = True
for box in g`*.box`:
sed -e f's#@@BOX@@#file:///home/greg/src/vms/vms/{box}#' -e f's/@@BOX_NAME@@/{box}/' Vagrantfile.in > Vagrantfile
vagrant up --provider virtualbox
for box in g`output/**/*.box`:
p = pathlib.Path(box)
sed -e f's#@@BOX@@#file:///home/greg/src/vms/vms/{box}#' -e f's/@@BOX_NAME@@/{p.name}/' Vagrantfile.in > Vagrantfile
if str(p.parent.name) == "virtualbox":
vagrant up --provider virtualbox
elif str(p.parent.name) == "qemu":
vagrant up --provider libvirt
else:
print(f"Now whatcha wanna go and do that for? {box}")
continue
vagrant destroy -f
rm -rf .vagrant