mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 05:18:43 +00:00
Make `fd` the default name of the program, but allow for the user to specify another, such as `FD=fdfind scripts/update-version.sh`. Fix the sed command to take the filename to modify in-place and specify that the regex string is the sed-expression to execute.
27 lines
660 B
Bash
Executable File
27 lines
660 B
Bash
Executable File
#! /bin/sh
|
|
|
|
: "${FD:=fd}"
|
|
|
|
# A script to update the version of all the crates at the same time
|
|
PREVIOUS_VERSION='1.0.0-alpha3'
|
|
NEXT_VERSION='1.0.0-alpha4'
|
|
|
|
# quick hack
|
|
${FD} Cargo.toml --exec sed -i '{}' -e "s/version = \"$PREVIOUS_VERSION\"/version = \"$NEXT_VERSION\"/"
|
|
echo "manually check changes to Cargo.toml"
|
|
|
|
${FD} wasmer.iss --exec sed -i '{}' -e "s/AppVersion=$PREVIOUS_VERSION/AppVersion=$NEXT_VERSION/"
|
|
echo "manually check changes to wasmer.iss"
|
|
|
|
# Order to upload packages in
|
|
## wasmer-types
|
|
## runtime-core
|
|
## win-exception-handler
|
|
## compiler
|
|
## compiler-cranelift
|
|
## compiler-llvm
|
|
## compiler-singlepass
|
|
## emscripten
|
|
## wasi
|
|
## wasmer (api)
|