-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuild_release.sh
More file actions
executable file
·38 lines (28 loc) · 762 Bytes
/
build_release.sh
File metadata and controls
executable file
·38 lines (28 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -e
# Load in all of the configs
. ./support/scripts/all-configs.sh
echo "Building a release of the following toolchains:"
echo
for CONFIG in $CONFIGS; do
echo " $CONFIG"
done
echo
echo "git describe: '$(git describe --dirty)'."
echo
# Give me a chance to hit CTRL-C in case I'm building a -dirty by accident
echo "Hit CTRL-C to stop..."
sleep 2
# Do some basic cleanup to avoid easy mistakes from stale files
find . -name .nerves | xargs rm -fr
find . -name deps | xargs rm -fr
find . -name _build | xargs rm -fr
for CONFIG in $CONFIGS; do
echo "Building $CONFIG..."
# ./nerves_toolchain_ctng/build.sh $CONFIG
cd $CONFIG
mix deps.get
mix nerves.artifact --path ../
cd ../
done
echo "All done!!!!!!"