mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
Some checks failed
CICD / Separate Builds (push) Waiting to run
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
CheckScripts / ShellScript/Check (push) Has been cancelled
CheckScripts / ShellScript/Format (push) Has been cancelled
* prepare version 0.3.0 * also update uu_stdbuf_libstdbuf * also update fuzz
50 lines
2.2 KiB
Bash
Executable file
50 lines
2.2 KiB
Bash
Executable file
#!/bin/sh
|
|
# spell-checker:ignore uuhelp
|
|
|
|
# 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: sh util/update-version.sh
|
|
# 3) Do a spot check with "git diff"
|
|
# 4) cargo test --release --features unix
|
|
# 5) git commit -m "New release" (make sure it includes Cargo.lock)
|
|
# 6) Run util/publish.sh in dry mode (it will fail as packages needs more recent version of uucore)
|
|
# 7) Run util/publish.sh --do-it
|
|
# 8) In some cases, you might have to fix dependencies and run import
|
|
# 9) Tag the release - "git tag 0.0.X && git push --tags"
|
|
# 10) Create the release on github https://github.com/uutils/coreutils/releases/new
|
|
# 11) Make sure we have good release notes
|
|
|
|
FROM="0.2.2"
|
|
TO="0.3.0"
|
|
|
|
PROGS=$(ls -1d src/uu/*/Cargo.toml src/uu/stdbuf/src/libstdbuf/Cargo.toml src/uucore/Cargo.toml Cargo.toml fuzz/uufuzz/Cargo.toml src/uu/stdbuf/Cargo.toml)
|
|
|
|
# update the version of all programs
|
|
#shellcheck disable=SC2086
|
|
sed -i -e "s|version = \"$FROM\"|version = \"$TO\"|" $PROGS
|
|
|
|
# Update uucore_procs
|
|
sed -i -e "s|version = \"$FROM\"|version = \"$TO\"|" src/uucore_procs/Cargo.toml
|
|
|
|
|
|
# Update the stdbuf stuff
|
|
sed -i -e "s|libstdbuf = { version=\"$FROM\"|libstdbuf = { version=\"$TO\"|" src/uu/stdbuf/Cargo.toml
|
|
sed -i -e "s|= { optional=true, version=\"$FROM\", package=\"uu_|= { optional=true, version=\"$TO\", package=\"uu_|g" Cargo.toml
|
|
|
|
# Update the base32 dependency for basenc and base64
|
|
sed -i -e "s|uu_base32 = { version=\">=$FROM\"|uu_base32 = { version=\">=$TO\"|" src/uu/base64/Cargo.toml src/uu/basenc/Cargo.toml
|
|
|
|
# Update the ls dependency for dir and vdir
|
|
sed -i -e "s|uu_ls = { version = \">=$FROM\"|uu_ls = { version = \">=$TO\"|" src/uu/dir/Cargo.toml src/uu/vdir/Cargo.toml
|
|
|
|
# Update uucore itself
|
|
sed -i -e "s|version = \"$FROM\"|version = \"$TO\"|" src/uucore/Cargo.toml
|
|
# Update crates using uucore
|
|
#shellcheck disable=SC2086
|
|
sed -i -e "s|uucore = { version=\">=$FROM\",|uucore = { version=\">=$TO\",|" $PROGS
|
|
# Update crates using uucore_procs
|
|
#shellcheck disable=SC2086
|
|
sed -i -e "s|uucore_procs = { version=\">=$FROM\",|uucore_procs = { version=\">=$TO\",|" $PROGS
|