mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 10:19:17 +00:00
58c4a9f14c
The scripts fail when run with the latest python3 versions. This uses vpython to pin the python version to 3.8. Change-Id: I71217a61f577f336728f99f22a255ea9a33c3af4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/254420 Reviewed-by: Sigmund Cherem <sigmund@google.com> Auto-Submit: Alexander Thomas <athom@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>
40 lines
1 KiB
Bash
Executable file
40 lines
1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
|
|
set -x
|
|
|
|
# go.sh [systems]
|
|
#
|
|
# Convenience script to generate systems. Do not call from build steps or tests
|
|
# - call fremontcutbuilder and dartdomgenerator instead. Do not add 'real'
|
|
# functionality here - change the python code instead.
|
|
#
|
|
# I find it essential to generate all the systems so I know if I am breaking
|
|
# other systems. My habit is to run:
|
|
#
|
|
# ./go.sh | tee Q
|
|
#
|
|
# I can inspect file Q if needed.
|
|
#
|
|
# Re-gen all sdk/lib files
|
|
#
|
|
# The following gives a picture of the changes due to 'work'
|
|
#
|
|
# git checkout master # select client without changes
|
|
# ./go.sh
|
|
# mv ../generated ../generated0 # save generated files
|
|
# git checkout work # select client with changes
|
|
# ./go.sh
|
|
# meld ../generated0 ../generated # compare directories with too
|
|
|
|
SYSTEMS="htmldart2js"
|
|
|
|
if [[ "$1" != "" ]] ; then
|
|
if [[ "$1" =~ ^-- ]]; then
|
|
ARG_OPTION="$1"
|
|
fi
|
|
fi
|
|
|
|
reset && \
|
|
vpython3 ./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata --gen-interop "$ARG_OPTION"
|