Merge branch 'fix-scripts' into 'master'

Fix a typo on the scripts

See merge request redox-os/redox!1482
This commit is contained in:
Jeremy Soller 2024-08-15 14:54:51 +00:00
commit cf8ffe43c1
10 changed files with 20 additions and 20 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# This script allow the user to copy a Rust backtrace from Redox # This script allow the user to copy a Rust backtrace from Redox
# and retrieve the symbols # and retrieve the symbols
#!/usr/bin/env bash
usage() usage()
{ {
echo "Usage: $0 -r recipe [ -e command_name ] [ -R ] [ -X | -6 | -A ] [[ -b backtracefile ] | [ addr1 ... ]]" echo "Usage: $0 -r recipe [ -e command_name ] [ -R ] [ -X | -6 | -A ] [[ -b backtracefile ] | [ addr1 ... ]]"

View file

@ -1,7 +1,7 @@
# This script run the recipe command options on some Cookbook category
#!/usr/bin/env bash #!/usr/bin/env bash
# This script run the recipe command options on some Cookbook category
if [ -z "$1" ] || [ -z "$2" ] if [ -z "$1" ] || [ -z "$2" ]
then then
echo "Build or clean all recipe directories in a category" >&2 echo "Build or clean all recipe directories in a category" >&2

View file

@ -1,7 +1,7 @@
# This script show the changelog of all Redox components
#!/usr/bin/env bash #!/usr/bin/env bash
# This script show the changelog of all Redox components
set -e set -e
LAST_RELEASE_TAG="$(git describe --tags --abbrev=0)" LAST_RELEASE_TAG="$(git describe --tags --abbrev=0)"

View file

@ -1,7 +1,7 @@
# This script show the current Git branch and commit of the recipe source
#!/usr/bin/env bash #!/usr/bin/env bash
# This script show the current Git branch and commit of the recipe source
if [ $# -ne 1 ] if [ $# -ne 1 ]
then then
echo "Usage: $0 recipe_name" echo "Usage: $0 recipe_name"

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# This script install Redox in the free space of your storage device # 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) # and add a boot entry (if you are using the systemd-boot boot loader)
#!/usr/bin/env bash
set -e set -e
if [ -n "$1" ] if [ -n "$1" ]

View file

@ -1,7 +1,7 @@
# This script show all files installed by a recipe
#!/usr/bin/env bash #!/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 # Ensure arch and config are set as desired, we use these to find the build dir
export ARCH=$(uname -m) export ARCH=$(uname -m)
export CONFIG_NAME=desktop export CONFIG_NAME=desktop

View file

@ -1,9 +1,9 @@
#!/usr/bin/env bash
# This script create a list with: # This script create a list with:
# "recipe-name = {} #TODO" # "recipe-name = {} #TODO"
# For quick testing of WIP recipes # For quick testing of WIP recipes
#!/usr/bin/env bash
# Given a string, find recipe.toml files containing that string. # Given a string, find recipe.toml files containing that string.
# Create a list that can be copy/pasted into a filesystem config. # Create a list that can be copy/pasted into a filesystem config.

View file

@ -1,8 +1,8 @@
#!/usr/bin/env bash
# This script show the package size of the recipes ("stage.pkgar" and "stage.tar.gz") # 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 # It must be used by package maintainers to enforce the library linking size policy
#!/usr/bin/env bash
if [ $# = 0 ] if [ $# = 0 ]
then then
find cookbook/recipes \( -name stage.pkgar -o -name stage.tar.gz \) -exec ls -hs {} \; find cookbook/recipes \( -name stage.pkgar -o -name stage.tar.gz \) -exec ls -hs {} \;

View file

@ -1,7 +1,7 @@
# This script show the contents of the "stage" and "sysroot" folders in some recipe
#!/usr/bin/env bash #!/usr/bin/env bash
# This script show the contents of the "stage" and "sysroot" folders in some recipe
if [ -z "$*" ] if [ -z "$*" ]
then then
echo "Show the contents of the stage and sysroot folders in recipe(s)" echo "Show the contents of the stage and sysroot folders in recipe(s)"

View file

@ -1,7 +1,7 @@
# This script create and copy the Redox bootable image to an Ventoy-formatted device
#!/usr/bin/env bash #!/usr/bin/env bash
# This script create and copy the Redox bootable image to an Ventoy-formatted device
set -e set -e
ARCHS=( ARCHS=(