forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilddown
executable file
·27 lines (23 loc) · 857 Bytes
/
builddown
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
#!/bin/bash
set -euo pipefail
scriptdir=$(cd $(dirname $0) && pwd)
export NODE_OPTIONS="--max-old-space-size=6144 ${NODE_OPTIONS:-}"
echo "************************************************************"
echo " builddown usage:"
echo " - execute 'builddown --resume' to resume after failure"
echo " - execute 'builddown' to restart the build from the start"
echo ""
echo " for advanced usage, see ${scriptdir}/foreach.sh"
echo "************************************************************"
if [ "$#" -eq 0 ]; then
${scriptdir}/foreach.sh --reset --down yarn build
else
if [ "$1" != "--resume" ]; then
echo "Unknown option: $1"
exit 1
fi
${scriptdir}/foreach.sh --down yarn build
fi
echo "************************************************************"
echo "builddown done"
echo "************************************************************"