Files
wasmer/scripts/update-version.sh
Nick Lewycky 01084fb0e4 Update this script so that it works on Linux.
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.
2020-11-06 10:55:49 -08:00

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)