aboutsummaryrefslogtreecommitdiff
path: root/scripts/make-amis
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/make-amis')
-rwxr-xr-xscripts/make-amis13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/make-amis b/scripts/make-amis
new file mode 100755
index 0000000..e0a699e
--- /dev/null
+++ b/scripts/make-amis
@@ -0,0 +1,13 @@
1#!/bin/sh
2
3cd build
4
5# if no build(s) specified, do all profile's builds!
6[ $# -gt 0 ] && BUILDS="$@" || BUILDS=$(ls profile)
7
8for B in $BUILDS
9do
10 BUILD="profile/$B"
11 ( packer build -var-file=$BUILD/vars.json packer.json; echo $? >$BUILD/exit ) | tee $BUILD/output
12 echo "=-> $(cat $BUILD/exit) <-="
13done