d87a545a6a
Simply adds the new location to the sys.path so it can be found and filters idl files within idl_parser so it doesn't affect codegen. Also removes a stale comment to finalize the python3 migration. Change-Id: I31d93fd8de22e38a0e968587149546565f86e3ba Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212630 Reviewed-by: Riley Porter <rileyporter@google.com>
40 lines
1.0 KiB
Bash
Executable File
40 lines
1.0 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 && \
|
|
python3 ./dartdomgenerator.py --systems="$SYSTEMS" --logging=40 --update-dom-metadata --gen-interop "$ARG_OPTION"
|