#!/bin/bash

[[ -z "$LAMBDA" ]] && echo '$LAMBDA required' && exit 1
[[ -z "$OUT" ]] && echo '$OUT required' && exit 1

PKG="code.justin.tv/foundation/admin-panel-lambdas"

go build -o main $PKG/lambdas/$LAMBDA

zip -j $OUT main
rm main
