Spotter-VM/build/usr/bin/lxc-build

12 lines
382 B
Plaintext
Raw Normal View History

2018-09-05 17:41:38 +02:00
#!/usr/bin/python3
# -*- coding: utf-8 -*-
2018-09-05 17:41:38 +02:00
from lxcbuild.lxcimage import LXCImage
2018-09-05 21:21:07 +02:00
2018-09-06 09:32:20 +02:00
if __name__ == '__main__':
if len(sys.argv) != 2 or sys.argv[1] in ('-h', '--help'):
2018-09-06 09:32:20 +02:00
print('Usage: lxc-build <buildpath>\n where the buildpath can be either specific lxcfile or a directory containing one')
else:
image = LXCImage(sys.argv[1])
image.build_and_pack()