[openwrt/openwrt] scripts: fix various typos
LEDE Commits
lede-commits at lists.infradead.org
Sun Dec 4 07:07:46 PST 2022
ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/997ab5437386493aab1ffa9a9e99061a6a4cba4b
commit 997ab5437386493aab1ffa9a9e99061a6a4cba4b
Author: Josh Soref <jsoref at users.noreply.github.com>
AuthorDate: Sun Sep 26 17:58:59 2021 -0400
scripts: fix various typos
This only affects typos in comments or user-facing output.
Signed-off-by: Josh Soref <jsoref at users.noreply.github.com>
[only picks changes to scripts, drop "commandline" replacement,
fix case for "arbitrary", improve commit message]
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
(cherry picked from commit 08622de7d66eb90038de54f34ab2fe2308424fd0)
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
scripts/checkpatch.pl | 2 +-
scripts/dl_github_archive.py | 4 ++--
scripts/ext-toolchain.sh | 2 +-
scripts/json_overview_image_info.py | 2 +-
scripts/linksys-image.sh | 4 ++--
scripts/pad_image | 2 +-
scripts/sign_images.sh | 4 ++--
scripts/size_compare.sh | 4 ++--
scripts/slugimage.pl | 4 ++--
9 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 81b1ffcb56..2adc5efec5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -4697,7 +4697,7 @@ sub process {
## $line !~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Type\s*$Ident.*/) {
##
## # Remove any bracketed sections to ensure we do not
-## # falsly report the parameters of functions.
+## # falsely report the parameters of functions.
## my $ln = $line;
## while ($ln =~ s/\([^\(\)]*\)//g) {
## }
diff --git a/scripts/dl_github_archive.py b/scripts/dl_github_archive.py
index 59fd7067be..b992227dc9 100755
--- a/scripts/dl_github_archive.py
+++ b/scripts/dl_github_archive.py
@@ -207,7 +207,7 @@ class GitHubCommitTsCache(object):
class DownloadGitHubTarball(object):
- """Download and repack archive tarabll from GitHub.
+ """Download and repack archive tarball from GitHub.
Compared with the method of packing after cloning the whole repo, this
method is more friendly to users with fragile internet connection.
@@ -220,7 +220,7 @@ class DownloadGitHubTarball(object):
- GitHub archives do not contain source codes for submodules.
- - GitHub archives seem to respect .gitattributes and ignore pathes with
+ - GitHub archives seem to respect .gitattributes and ignore paths with
export-ignore attributes.
For the first two issues, the method will fail loudly to allow fallback to
diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index ee7d9532f5..4da287591a 100755
--- a/scripts/ext-toolchain.sh
+++ b/scripts/ext-toolchain.sh
@@ -569,7 +569,7 @@ while [ -n "$1" ]; do
echo -e " Most commands also take a --cflags parameter which " >&2
echo -e " is used to specify C flags to be passed to the " >&2
echo -e " cross compiler when performing tests." >&2
- echo -e " This paremter may be repeated multiple times." >&2
+ echo -e " This parameter may be repeated multiple times." >&2
exit 1
;;
diff --git a/scripts/json_overview_image_info.py b/scripts/json_overview_image_info.py
index db47fd9e42..89b7d4fe20 100755
--- a/scripts/json_overview_image_info.py
+++ b/scripts/json_overview_image_info.py
@@ -7,7 +7,7 @@ from sys import argv
import json
if len(argv) != 2:
- print("JSON info files script requires ouput file as argument")
+ print("JSON info files script requires output file as argument")
exit(1)
output_path = Path(argv[1])
diff --git a/scripts/linksys-image.sh b/scripts/linksys-image.sh
index 36a676d964..c3baf44844 100755
--- a/scripts/linksys-image.sh
+++ b/scripts/linksys-image.sh
@@ -11,11 +11,11 @@
# This is appended to the factory image and is tested by the Linksys Upgrader - as observed in civic.
# The footer is 256 bytes. The format is:
# .LINKSYS. This is detected by the Linksys upgrader before continuing with upgrade. (9 bytes)
-# <VERSION> The version number of upgrade. Not checked so use arbitary value (8 bytes)
+# <VERSION> The version number of upgrade. Not checked so use arbitrary value (8 bytes)
# <TYPE> Model of target device, padded (0x20) to (15 bytes)
# <CRC> CRC checksum of the image to flash (8 byte)
# <padding> Padding (0x20) (7 bytes)
-# <signature> Signature of signer. Not checked so use Arbitary value (16 bytes)
+# <signature> Signature of signer. Not checked so use arbitrary value (16 bytes)
# <padding> Padding (0x00) (192 bytes)
# 0x0A (1 byte)
diff --git a/scripts/pad_image b/scripts/pad_image
index b1941a28d8..871063af34 100755
--- a/scripts/pad_image
+++ b/scripts/pad_image
@@ -2,7 +2,7 @@
function usage {
echo "Usage: prepare_image image_type kernel_image rootfs_image header_size"
- echo "Padd root and kernel image to the correct size and append the jffs2 start marker as needed"
+ echo "Pad root and kernel image to the correct size and append the jffs2 start marker as needed"
exit 1
}
diff --git a/scripts/sign_images.sh b/scripts/sign_images.sh
index c41b21e091..f37c2f5016 100755
--- a/scripts/sign_images.sh
+++ b/scripts/sign_images.sh
@@ -3,12 +3,12 @@
# directory where search for images
TOP_DIR="${TOP_DIR:-./bin/targets}"
# key to sign images
-BUILD_KEY="${BUILD_KEY:-key-build}" # TODO unifiy naming?
+BUILD_KEY="${BUILD_KEY:-key-build}" # TODO unify naming?
# remove other signatures (added e.g. by buildbot)
REMOVE_OTER_SIGNATURES="${REMOVE_OTER_SIGNATURES:-1}"
# find all sysupgrade images in TOP_DIR
-# factory images don't need signatures as non OpenWrt system doen't check them anyway
+# factory images don't need signatures as non OpenWrt system doesn't check them anyway
for image in $(find $TOP_DIR -type f -name "*-sysupgrade.bin"); do
# check if image actually support metadata
if fwtool -i /dev/null "$image"; then
diff --git a/scripts/size_compare.sh b/scripts/size_compare.sh
index 8b047a451e..a5cc3337c7 100755
--- a/scripts/size_compare.sh
+++ b/scripts/size_compare.sh
@@ -7,9 +7,9 @@
###
### The script compares locally compiled package with the package indexes
### available upstream. This way the storage impact of optimizations or
-### feature modifiactions is easy to see.
+### feature modifications is easy to see.
###
-### If no environmental variables are set the scritp reads the current
+### If no environmental variables are set the script reads the current
### .config file. The evaluated env variables are the following:
###
### TARGET SUBTARGET ARCH PACKAGES BIN_DIR BASE_URL CHECK_INSTALLED
diff --git a/scripts/slugimage.pl b/scripts/slugimage.pl
index 8c0654d4f6..366b239e96 100755
--- a/scripts/slugimage.pl
+++ b/scripts/slugimage.pl
@@ -772,7 +772,7 @@ sub writeOutFirmware {
$_->{'name'}, $filename);
}
- # If the next parition is before the end of the current image, then rewind.
+ # If the next partition is before the end of the current image, then rewind.
elsif ($_->{'offset'} < $end_point) {
$debug and printf("Rewound %s before <%s> in \"%s\"\n",
(($end_point - $_->{'offset'}) >= $block_size ?
@@ -971,7 +971,7 @@ if (!GetOptions("d|debug" => \$debug,
print " [-b|--redboot] <file> Input/Output RedBoot filename\n";
print " [-s|--sysconf] <file> Input/Output SysConf filename\n";
print " [-L|--loader] <file> Second stage boot loader filename\n";
- print " [-k|--kernel] <file> Input/Ouptut Kernel filename\n";
+ print " [-k|--kernel] <file> Input/Output Kernel filename\n";
print " [-r|--ramdisk] <file> Input/Output Ramdisk filename(s)\n";
print " [-f|--fisdir] <file> Input/Output FIS directory filename\n";
print " [-m|--microcode] <file> Input/Output Microcode filename\n";
More information about the lede-commits
mailing list