|
| 1 | +#!/usr/bin/env bash |
| 2 | + |
| 3 | +shopt -s nullglob |
| 4 | + |
| 5 | +# This list generated by deleting .gitignore and running `git status` after a build |
| 6 | +artifacts=( |
| 7 | + .eslintcache |
| 8 | + __pycache__ |
| 9 | + #*/__pycache__ |
| 10 | + #*/*/__pycache__ |
| 11 | + #*/*/*/__pycache__ |
| 12 | + config.gypi |
| 13 | + config.mk |
| 14 | + config.status |
| 15 | + deps/icu-tmp |
| 16 | + deps/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__ |
| 17 | + deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__ |
| 18 | + icu_config.gypi |
| 19 | + node |
| 20 | + node_trace.1.log |
| 21 | + out |
| 22 | + test/*/__pycache__ |
| 23 | + test/addons/01_worker_support |
| 24 | + test/addons/02_function_arguments |
| 25 | + test/addons/03_callbacks |
| 26 | + test/addons/04_object_factory |
| 27 | + test/addons/05_function_factory |
| 28 | + test/addons/06_wrapping_c_objects |
| 29 | + test/addons/07_factory_of_wrapped_objects |
| 30 | + test/addons/08_passing_wrapped_objects_around |
| 31 | + tools/.cpplintstamp |
| 32 | + tools/.doclintstamp |
| 33 | + tools/.mdlintstamp |
| 34 | + tools/__pycache__ |
| 35 | + tools/configure.d/__pycache__ |
| 36 | + tools/doc/node_modules |
| 37 | + tools/inspector_protocol/__pycache__ |
| 38 | + tools/inspector_protocol/jinja2/__pycache__ |
| 39 | + tools/inspector_protocol/markupsafe/__pycache__ |
| 40 | + tools/v8_gypfiles/__pycache__ |
| 41 | +) |
| 42 | +shopt -u nullglob |
| 43 | + |
| 44 | +from="/workspaces/node-prior" |
| 45 | +to="/workspaces/node" |
| 46 | +for artifact in "${artifacts[@]}" ; do |
| 47 | + echo "Copy build artifact from $from to $to: $artifact" |
| 48 | + cp -rp "$from/$artifact" "$to/$artifact" |
| 49 | + echo "Changing ownership of build artifact to match UID: $artifact" |
| 50 | + # VSCode updates the `build` user ID in the container to match host's user ID |
| 51 | + # This avoids volume mounting issues. |
| 52 | + # We must manually update owner of copied files |
| 53 | + sudo chown -R build "$to/$artifact" |
| 54 | +done |
0 commit comments