2021-03-07 10:04:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# This is a stupid helper. I will mass replace all versions (including other crates)
|
|
|
|
# So, it should be triple-checked
|
|
|
|
|
|
|
|
|
2021-04-03 13:55:02 +00:00
|
|
|
FROM="0.0.5"
|
|
|
|
TO="0.0.6"
|
2021-03-07 10:04:43 +00:00
|
|
|
|
2021-04-03 08:28:12 +00:00
|
|
|
UUCORE_FROM="0.0.7"
|
|
|
|
UUCORE_TO="0.0.8"
|
2021-03-07 10:04:43 +00:00
|
|
|
|
|
|
|
PROGS=$(ls -1d src/uu/*/Cargo.toml src/uu/stdbuf/src/libstdbuf/Cargo.toml Cargo.toml)
|
|
|
|
|
|
|
|
# update the version of all programs
|
|
|
|
sed -i -e "s|version = \"$FROM\"|version = \"$TO\"|" $PROGS
|
|
|
|
|
|
|
|
# Update the stbuff 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 uucore itself
|
2021-04-03 13:55:02 +00:00
|
|
|
#sed -i -e "s|version = \"$UUCORE_FROM\"|version = \"$UUCORE_TO\"|" src/uucore/Cargo.toml
|
2021-03-07 10:04:43 +00:00
|
|
|
# Update crates using uucore
|
2021-04-03 13:55:02 +00:00
|
|
|
#sed -i -e "s|uucore = { version=\">=$UUCORE_FROM\",|uucore = { version=\">=$UUCORE_TO\",|" $PROGS
|
2021-03-07 10:04:43 +00:00
|
|
|
|
|
|
|
|