mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 14:53:37 +00:00
[dartdoc] move the dartdoc resources from bin/snapshots/resources/dartdoc to bin/resources/dartdoc
Change-Id: Iad7e9951a222ed205dbca7825ff73f676fb99c2a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114220 Reviewed-by: Keerti Parthasarathy <keertip@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
a873bc5db3
commit
35df96a2e2
10
sdk/BUILD.gn
10
sdk/BUILD.gn
|
@ -251,22 +251,22 @@ _platform_sdk_libraries = _full_sdk_libraries
|
|||
copy_tree_specs = []
|
||||
|
||||
# This rule copies dartdoc templates to
|
||||
# bin/snapshots/resources/dartdoc/templates
|
||||
# bin/resources/dartdoc/templates
|
||||
copy_tree_specs += [ {
|
||||
target = "copy_dartdoc_templates"
|
||||
visibility = [ ":copy_dartdoc_files" ]
|
||||
source = "../third_party/pkg/dartdoc/lib/templates"
|
||||
dest = "$root_out_dir/dart-sdk/bin/snapshots/resources/dartdoc/templates"
|
||||
dest = "$root_out_dir/dart-sdk/bin/resources/dartdoc/templates"
|
||||
ignore_patterns = "{}"
|
||||
} ]
|
||||
|
||||
# This rule copies dartdoc resources to
|
||||
# bin/snapshots/resources/dartdoc/resources
|
||||
# bin/resources/dartdoc/resources
|
||||
copy_tree_specs += [ {
|
||||
target = "copy_dartdoc_resources"
|
||||
visibility = [ ":copy_dartdoc_files" ]
|
||||
source = "../third_party/pkg/dartdoc/lib/resources"
|
||||
dest = "$root_out_dir/dart-sdk/bin/snapshots/resources/dartdoc/resources"
|
||||
dest = "$root_out_dir/dart-sdk/bin/resources/dartdoc/resources"
|
||||
ignore_patterns = "{}"
|
||||
} ]
|
||||
|
||||
|
@ -568,7 +568,7 @@ group("copy_full_sdk_snapshots") {
|
|||
}
|
||||
|
||||
# This rule writes the .packages file for dartdoc resources.
|
||||
write_file("$root_out_dir/dart-sdk/bin/snapshots/resources/dartdoc/.packages",
|
||||
write_file("$root_out_dir/dart-sdk/bin/resources/dartdoc/.packages",
|
||||
"dartdoc:.")
|
||||
|
||||
# This is the main rule for copying the files that dartdoc needs.
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
# for details. All rights reserved. Use of this source code is governed by a
|
||||
# BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
# Run dart_style/bin/format.dart on the Dart VM. This script assumes the Dart
|
||||
# SDK's directory structure.
|
||||
|
||||
function follow_links() {
|
||||
file="$1"
|
||||
while [ -h "$file" ]; do
|
||||
|
@ -26,4 +23,4 @@ SNAPSHOT="$BIN_DIR/snapshots/dartdoc.dart.snapshot"
|
|||
|
||||
# We are running the snapshot in the built SDK.
|
||||
DART="$BIN_DIR/dart"
|
||||
exec "$DART" "--packages=$BIN_DIR/snapshots/resources/dartdoc/.packages" "$SNAPSHOT" "$@"
|
||||
exec "$DART" "--packages=$BIN_DIR/resources/dartdoc/.packages" "$SNAPSHOT" "$@"
|
||||
|
|
|
@ -14,7 +14,7 @@ for %%i in ("%RETURNED_BIN_DIR%") do set BIN_DIR=%%~fi
|
|||
set DART=%BIN_DIR%\dart
|
||||
set SNAPSHOT=%BIN_DIR%\snapshots\dartdoc.dart.snapshot
|
||||
|
||||
"%DART%" "--packages=%BIN_DIR%/snapshots/resources/dartdoc/.packages" "%SNAPSHOT%" %*
|
||||
"%DART%" "--packages=%BIN_DIR%/resources/dartdoc/.packages" "%SNAPSHOT%" %*
|
||||
|
||||
endlocal
|
||||
|
||||
|
|
Loading…
Reference in a new issue