fix: Typos and stuff

This commit is contained in:
Maciej Krüger 2018-10-21 14:13:16 +02:00
parent a809c3b822
commit 8cf86677cc
2 changed files with 8 additions and 2 deletions

View File

@ -6,13 +6,18 @@ DEVICE_PORT=$(shell bash conf-tool.sh read DEVICE_PORT)
USER_KEY=$(shell bash conf-tool.sh read USER_KEY)
USER_EMAIL=$(shell bash conf-tool.sh read USER_EMAIL)
all:
all: .config
.config:
bash conf-tool.sh
echo "Please re-run the command"
exit 2
clean:
rm -rf *.img *.model *.manifest snaps
%.model: boards/%.yaml # sign a model file
cat definition.yaml $< | python -c "import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=2)" | sed "s|TIMESTAMP|$(shell date -Iseconds --utc)|g" | snap sign -k "$USER_KEY" > $@
cat definition.yaml $< | python -c "import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=2)" | sed "s|TIMESTAMP|$(shell date -Iseconds --utc)|g" | snap sign -k "$(USER_KEY)" > $@
snaps/%: deps/%.yaml
node build-tool.js --env $(ENV) --channel $(CHANNEL) --board $*
%.img: %.model snaps/% $(ENV).cloud-init.yaml # build an image

View File

@ -11,6 +11,7 @@ if [ "x$1" == "xread" ]; then
fi
. .config
echo "${!2}"
exit
fi
signing_key=$(snap keys | tail -n 1 | sed "s| |\n|g" | head -n 1) # value if no key exists: "No"