Skip to content

Commit

Permalink
Fix typos in examples, scripts and tools.
Browse files Browse the repository at this point in the history
Closes bazelbuild#16415.

PiperOrigin-RevId: 479560662
Change-Id: Ia25f2585553995d8830d95e23f9ed2d44551aee1
  • Loading branch information
xiaoxq authored and copybara-github committed Oct 7, 2022
1 parent 16c89c1 commit 1bae565
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/windows/dll/windows_dll_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This is a simple windows_dll_library rule for builing a DLL Windows
that can be depended on by other cc rules.
Example useage:
Example usage:
windows_dll_library(
name = "hellolib",
srcs = [
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap/buildenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function cleanup_phasefile() {

atexit cleanup_phasefile

# Excutes a command respecting the current verbosity settings.
# Executes a command respecting the current verbosity settings.
#
# If VERBOSE is yes, the command itself and its output are printed.
# If VERBOSE is no, the command's output is only displayed in case of failure.
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function create_deploy_jar() {
HOW_TO_BOOTSTRAP='
--------------------------------------------------------------------------------
NOTE: This failure is likely occuring if you are trying to bootstrap bazel from
NOTE: This failure is likely occurring if you are trying to bootstrap bazel from
a developer checkout. Those checkouts do not include the generated output of
the protoc compiler (as we prefer not to version generated files).
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function generate_from_template() {
# Generate the email for the release.
# The first line of the output will be the recipient, the second line
# the mail subjects and the subsequent lines the mail, its content.
# If no planed release, then this function output will be empty.
# If no planned release, then this function output will be empty.
function generate_email() {
RELEASE_CANDIDATE_URL="https://releases.bazel.build/%release_name%/rc%rc%/index.html"
RELEASE_URL="https://github.com/bazelbuild/bazel/releases/tag/%release_name%"
Expand Down Expand Up @@ -214,7 +214,7 @@ function ensure_gpg_secret_key_imported() {

# Make sure we use stronger digest algorithm。
# We use reprepro to generate the debian repository,
# but there's no way to pass flags to gpg using reprepro, so writting it into
# but there's no way to pass flags to gpg using reprepro, so writing it into
# ~/.gnupg/gpg.conf
if ! grep "digest-algo sha256" ~/.gnupg/gpg.conf > /dev/null; then
echo "digest-algo sha256" >> ~/.gnupg/gpg.conf
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_fish_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def write_completion(self, output_file, command=_BAZEL):
Args:
output_file: File object to write completions into. Must be open in
a writable mode.
command: String containg the command name (i.e. "bazel").
command: String containing the command name (i.e. "bazel").
"""
args = self._get_complete_args_base(
command=command, subcommand=self.expected_subcommand)
Expand Down
2 changes: 1 addition & 1 deletion scripts/packages/chocolatey/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ The following are experimental or use not recommended:
- it's based on git describe
* IS_ADMIN = Is the user an administrator? But doesn't tell you if the process is elevated. (0.9.9+)
* chocolateyInstallOverride = Not for use in package automation scripts. (0.9.9+)
* chocolateyInstallArguments = the installer arguments meant for the native installer. You should use chocolateyPackageParameters intead. (0.9.9+)
* chocolateyInstallArguments = the installer arguments meant for the native installer. You should use chocolateyPackageParameters instead. (0.9.9+)

2 changes: 1 addition & 1 deletion scripts/packages/template_bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -e

# Bazel self-extractable installer

# Installation and etc prefix can be overriden from command line
# Installation and etc prefix can be overridden from command line
install_prefix=${1:-"/usr/local"}

progname="$0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ The typical workflow for the release manager is:
(usually a version number). The BASELINE is generally a baseline
that has been tested extensively including inside Google.
2. Push to the repository and wait for the continuous integration
to rebuild and deploy the various artifacts and send the annoucement
to rebuild and deploy the various artifacts and send the announcement
mails about a new release candidate being available.
3. If necessary, creates a new release branch with the same name to
address return from the users and go back to 2.
Expand Down
2 changes: 1 addition & 1 deletion tools/android/junction.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self,
testonly_mkdtemp: function(); for testing only; a custom function that
returns a temp directory path, you can use it to mock out
tempfile.mkdtemp
testonly_maxpath: int; for testing oly; maximum path length before the
testonly_maxpath: int; for testing only; maximum path length before the
path is a "long path" (typically MAX_PATH on Windows)
"""
self._target = os.path.abspath(junction_target)
Expand Down
2 changes: 1 addition & 1 deletion tools/build_defs/repo/git.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ _common_attrs = {
),
"patch_tool": attr.string(
default = "",
doc = "The patch(1) utility to use. If this is specified, Bazel will use the specifed " +
doc = "The patch(1) utility to use. If this is specified, Bazel will use the specified " +
"patch tool instead of the Bazel-native patch implementation.",
),
"patch_args": attr.string_list(
Expand Down
2 changes: 1 addition & 1 deletion tools/build_defs/repo/http.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ following: `"zip"`, `"jar"`, `"war"`, `"aar"`, `"tar"`, `"tar.gz"`, `"tgz"`,
),
"patch_tool": attr.string(
default = "",
doc = "The patch(1) utility to use. If this is specified, Bazel will use the specifed " +
doc = "The patch(1) utility to use. If this is specified, Bazel will use the specified " +
"patch tool instead of the Bazel-native patch implementation.",
),
"patch_args": attr.string_list(
Expand Down
2 changes: 1 addition & 1 deletion tools/cpp/cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def cc_autoconf_impl(repository_ctx, overriden_tools = dict()):
])

# This is defaulting to a static crosstool. We should eventually
# autoconfigure this platform too. Theorically, FreeBSD and OpenBSD
# autoconfigure this platform too. Theoretically, FreeBSD and OpenBSD
# should be straightforward to add but we cannot run them in a Docker
# container so skipping until we have proper tests for these platforms.
repository_ctx.symlink(paths["@bazel_tools//tools/cpp:bsd_cc_toolchain_config.bzl"], "cc_toolchain_config.bzl")
Expand Down
2 changes: 1 addition & 1 deletion tools/cpp/lib_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def split_escaped(string, delimiter):
Basic usage:
split_escaped("a:b:c", ":") -> [ "a", "b", "c" ]
Delimeter that is not supposed to be splitten on has to be %-escaped:
Delimiter that is not supposed to be splitten on has to be %-escaped:
split_escaped("a%:b", ":") -> [ "a:b" ]
Literal % can be represented by escaping it as %%:
Expand Down
2 changes: 1 addition & 1 deletion tools/cpp/osx_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def configure_osx_toolchain(repository_ctx, cpu_value, overriden_tools):
Args:
repository_ctx: The repository context.
overriden_tools: dictionary of overriden tools.
overriden_tools: dictionary of overridden tools.
"""
paths = resolve_labels(repository_ctx, [
"@bazel_tools//tools/cpp:armeabi_cc_toolchain_config.bzl",
Expand Down
4 changes: 2 additions & 2 deletions tools/cpp/unix_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _get_value(it):
return "\"%s\"" % it

def _find_tool(repository_ctx, tool, overriden_tools):
"""Find a tool for repository, taking overriden tools into account."""
"""Find a tool for repository, taking overridden tools into account."""
if tool in overriden_tools:
return overriden_tools[tool]
return which(repository_ctx, tool, "/usr/bin/" + tool)
Expand Down Expand Up @@ -297,7 +297,7 @@ def _find_generic(repository_ctx, name, env_name, overriden_tools, warn = False,
result = env_value
env_value_with_paren = " (%s)" % env_value
if result.startswith("/"):
# Absolute path, maybe we should make this suported by our which function.
# Absolute path, maybe we should make this supported by our which function.
return result
result = repository_ctx.which(result)
if result == None:
Expand Down
4 changes: 2 additions & 2 deletions tools/cpp/windows_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ _targets_lib_folder = {"x86": "", "arm": "arm", "arm64": "arm64"}
def _lookup_env_var(env, name, default = None):
"""Lookup environment variable case-insensitve.
If a matching (case-insesitive) entry is found in the env dict both
If a matching (case-insensitive) entry is found in the env dict both
the key and the value are returned. The returned key might differ from
name in casing.
Expand Down Expand Up @@ -423,7 +423,7 @@ def _get_latest_subversion(repository_ctx, vc_path):
version_list = sorted(version_list)
latest_version = version_list[-1][1]

auto_configure_warning_maybe(repository_ctx, "Found the following VC verisons:\n%s\n\nChoosing the latest version = %s" % ("\n".join(versions), latest_version))
auto_configure_warning_maybe(repository_ctx, "Found the following VC versions:\n%s\n\nChoosing the latest version = %s" % ("\n".join(versions), latest_version))
return latest_version

def _get_vc_full_version(repository_ctx, vc_path):
Expand Down
2 changes: 1 addition & 1 deletion tools/objc/xcrunwrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [[ -z "${WRAPPER_DEVDIR}" ]] ; then
WRAPPER_DEVDIR="$(xcode-select -p)"
fi

# Subsitute toolkit path placeholders.
# Substitute toolkit path placeholders.
UPDATEDARGS=()
for ARG in "$@" ; do
ARG="${ARG//__BAZEL_XCODE_DEVELOPER_DIR__/${WRAPPER_DEVDIR}}"
Expand Down
2 changes: 1 addition & 1 deletion tools/osx/xcode_locator.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#import <Foundation/Foundation.h>

// Simple data structure for tracking a version of Xcode (i.e. 6.4) with an URL
// to the appplication.
// to the application.
@interface XcodeVersionEntry : NSObject
@property(readonly) NSString *version;
@property(readonly) NSString *productVersion;
Expand Down
2 changes: 1 addition & 1 deletion tools/upload_bazel_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# This script fetches
# `https://github.com/bazelbuild/<rules_xyz>/archive/<version>.tar.gz`
# and uploads it to the cannonical location on `https://mirror.bazel.build`.
# and uploads it to the canonical location on `https://mirror.bazel.build`.

set -euo pipefail

Expand Down

0 comments on commit 1bae565

Please sign in to comment.