forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebuild.sh
executable file
·28 lines (23 loc) · 988 Bytes
/
rebuild.sh
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
#!/bin/sh
# This script is expected to produce working builds for all compiler versions >= 0.3.6 and
# succeeding solc-js test runs for all compiler versions >= 0.5.0.
if [ $# -lt 2 ]; then
echo "Usage: $0 [tagFilter] [outputDirectory] [options...]"
echo
echo " [tagFilter] will be passed to "git tag --list" to filter the tags to be built."
echo " [outputDirectory] will contain log files and the resulting soljson.js builds."
echo " --retest will re-run tests and bytecode comparisons, even if soljson.js is already built."
exit 1
fi
TAGS="$1"
OUTPUTDIR="$2"
shift
shift
SCRIPTDIR=$(dirname "$0")
SCRIPTDIR=$(realpath "${SCRIPTDIR}")
if [ ! -d "${OUTPUTDIR}" ]; then
echo "Output directory ${OUTPUTDIR} does not exist!."
exit 1
fi
OUTPUTDIR=$(realpath "${OUTPUTDIR}")
docker run --rm -v "${OUTPUTDIR}":/tmp/output -v "${SCRIPTDIR}":/tmp/scripts:ro -it trzeci/emscripten:sdk-tag-1.39.3-64bit /tmp/scripts/docker-scripts/rebuild_tags.sh "${TAGS}" /tmp/output "$@"