From ee8f5863d48987ed1e637695381069460c6523a7 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Thu, 15 Aug 2024 14:54:51 +0000 Subject: [PATCH] Fix a typo on the scripts --- scripts/backtrace.sh | 4 ++-- scripts/category.sh | 4 ++-- scripts/changelog.sh | 4 ++-- scripts/commit-hash.sh | 4 ++-- scripts/dual-boot.sh | 4 ++-- scripts/find-recipe.sh | 4 ++-- scripts/include-recipes.sh | 4 ++-- scripts/pkg-size.sh | 4 ++-- scripts/show-package.sh | 4 ++-- scripts/ventoy.sh | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/scripts/backtrace.sh b/scripts/backtrace.sh index d0389e0..ca29569 100755 --- a/scripts/backtrace.sh +++ b/scripts/backtrace.sh @@ -1,8 +1,8 @@ +#!/usr/bin/env bash + # This script allow the user to copy a Rust backtrace from Redox # and retrieve the symbols -#!/usr/bin/env bash - usage() { echo "Usage: $0 -r recipe [ -e command_name ] [ -R ] [ -X | -6 | -A ] [[ -b backtracefile ] | [ addr1 ... ]]" diff --git a/scripts/category.sh b/scripts/category.sh index 5a08f14..933fab7 100755 --- a/scripts/category.sh +++ b/scripts/category.sh @@ -1,7 +1,7 @@ -# This script run the recipe command options on some Cookbook category - #!/usr/bin/env bash +# This script run the recipe command options on some Cookbook category + if [ -z "$1" ] || [ -z "$2" ] then echo "Build or clean all recipe directories in a category" >&2 diff --git a/scripts/changelog.sh b/scripts/changelog.sh index 6eef235..f77b00a 100755 --- a/scripts/changelog.sh +++ b/scripts/changelog.sh @@ -1,7 +1,7 @@ -# This script show the changelog of all Redox components - #!/usr/bin/env bash +# This script show the changelog of all Redox components + set -e LAST_RELEASE_TAG="$(git describe --tags --abbrev=0)" diff --git a/scripts/commit-hash.sh b/scripts/commit-hash.sh index 96d16fc..6ed18f1 100755 --- a/scripts/commit-hash.sh +++ b/scripts/commit-hash.sh @@ -1,7 +1,7 @@ -# This script show the current Git branch and commit of the recipe source - #!/usr/bin/env bash +# This script show the current Git branch and commit of the recipe source + if [ $# -ne 1 ] then echo "Usage: $0 recipe_name" diff --git a/scripts/dual-boot.sh b/scripts/dual-boot.sh index 196a5bd..dbbd6ed 100755 --- a/scripts/dual-boot.sh +++ b/scripts/dual-boot.sh @@ -1,8 +1,8 @@ +#!/usr/bin/env bash + # This script install Redox in the free space of your storage device # and add a boot entry (if you are using the systemd-boot boot loader) -#!/usr/bin/env bash - set -e if [ -n "$1" ] diff --git a/scripts/find-recipe.sh b/scripts/find-recipe.sh index 4de00ec..ba47150 100755 --- a/scripts/find-recipe.sh +++ b/scripts/find-recipe.sh @@ -1,7 +1,7 @@ -# This script show all files installed by a recipe - #!/usr/bin/env bash +# This script show all files installed by a recipe + # Ensure arch and config are set as desired, we use these to find the build dir export ARCH=$(uname -m) export CONFIG_NAME=desktop diff --git a/scripts/include-recipes.sh b/scripts/include-recipes.sh index a38c1c9..87954ab 100755 --- a/scripts/include-recipes.sh +++ b/scripts/include-recipes.sh @@ -1,9 +1,9 @@ +#!/usr/bin/env bash + # This script create a list with: # "recipe-name = {} #TODO" # For quick testing of WIP recipes -#!/usr/bin/env bash - # Given a string, find recipe.toml files containing that string. # Create a list that can be copy/pasted into a filesystem config. diff --git a/scripts/pkg-size.sh b/scripts/pkg-size.sh index 0acc6d2..a443fb8 100755 --- a/scripts/pkg-size.sh +++ b/scripts/pkg-size.sh @@ -1,8 +1,8 @@ +#!/usr/bin/env bash + # This script show the package size of the recipes ("stage.pkgar" and "stage.tar.gz") # It must be used by package maintainers to enforce the library linking size policy -#!/usr/bin/env bash - if [ $# = 0 ] then find cookbook/recipes \( -name stage.pkgar -o -name stage.tar.gz \) -exec ls -hs {} \; diff --git a/scripts/show-package.sh b/scripts/show-package.sh index 1b43c94..c8782ca 100755 --- a/scripts/show-package.sh +++ b/scripts/show-package.sh @@ -1,7 +1,7 @@ -# This script show the contents of the "stage" and "sysroot" folders in some recipe - #!/usr/bin/env bash +# This script show the contents of the "stage" and "sysroot" folders in some recipe + if [ -z "$*" ] then echo "Show the contents of the stage and sysroot folders in recipe(s)" diff --git a/scripts/ventoy.sh b/scripts/ventoy.sh index 34263a5..8022f04 100755 --- a/scripts/ventoy.sh +++ b/scripts/ventoy.sh @@ -1,7 +1,7 @@ -# This script create and copy the Redox bootable image to an Ventoy-formatted device - #!/usr/bin/env bash +# This script create and copy the Redox bootable image to an Ventoy-formatted device + set -e ARCHS=(