mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
update shell scripts according to shellcheck recommendations and minor cleanup
This commit is contained in:
parent
dfc661e8b5
commit
d762bebc1c
9 changed files with 52 additions and 56 deletions
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
# This is a stupid helper. I will mass replace all versions (including other crates)
|
||||
# So, it should be triple-checked
|
||||
|
||||
# How to ship a new release:
|
||||
# 1) update this script
|
||||
# 2) run it: bash util/update-version.sh
|
||||
# 2) run it: sh util/update-version.sh
|
||||
# 3) Do a spot check with "git diff"
|
||||
# 4) cargo test --release --features unix
|
||||
# 5) Run util/publish.sh in dry mode (it will fail as packages needs more recent version of uucore)
|
||||
|
@ -23,6 +23,7 @@ UUCORE_TO="0.0.11"
|
|||
PROGS=$(ls -1d src/uu/*/Cargo.toml src/uu/stdbuf/src/libstdbuf/Cargo.toml Cargo.toml src/uu/base64/Cargo.toml)
|
||||
|
||||
# update the version of all programs
|
||||
#shellcheck disable=SC2086
|
||||
sed -i -e "s|version = \"$FROM\"|version = \"$TO\"|" $PROGS
|
||||
|
||||
# Update uucore_procs
|
||||
|
@ -35,6 +36,8 @@ sed -i -e "s|= { optional=true, version=\"$FROM\", package=\"uu_|= { optional=tr
|
|||
# Update uucore itself
|
||||
sed -i -e "s|version = \"$UUCORE_FROM\"|version = \"$UUCORE_TO\"|" src/uucore/Cargo.toml
|
||||
# Update crates using uucore
|
||||
#shellcheck disable=SC2086
|
||||
sed -i -e "s|uucore = { version=\">=$UUCORE_FROM\",|uucore = { version=\">=$UUCORE_TO\",|" $PROGS
|
||||
# Update crates using uucore_procs
|
||||
#shellcheck disable=SC2086
|
||||
sed -i -e "s|uucore_procs = { version=\">=$UUCORE_PROCS_FROM\",|uucore_procs = { version=\">=$UUCORE_PROCS_TO\",|" $PROGS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue