mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Removing installer scripts and references in other scripts and readme Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing installer reference from development.adoc Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Adding a message to installer script so as to not break it for existing users Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing unused variable which is no longer needed Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing installer again Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
44 lines
1.5 KiB
Bash
Executable File
44 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# this script updates version number in odo source code
|
|
# run this script from root source with new version as an argument (./scripts/bump-version.sh v0.0.2 )
|
|
|
|
NEW_VERSION=$1
|
|
|
|
if [[ -z "${NEW_VERSION}" ]]; then
|
|
echo "Version number is missing."
|
|
echo "One argument required."
|
|
echo "example: $0 0.0.2"
|
|
exit 1
|
|
fi
|
|
|
|
check_version(){
|
|
file=$1
|
|
|
|
grep ${NEW_VERSION} $file
|
|
echo ""
|
|
}
|
|
|
|
|
|
echo "* Bumping version in pkg/odo/cli/version/version.go"
|
|
sed -i "s/\(VERSION = \)\"v[0-9]*\.[0-9]*\.[0-9]*\(?:-\w+\)\?\"/\1\"v${NEW_VERSION}\"/g" pkg/version/version.go
|
|
check_version pkg/version/version.go
|
|
|
|
echo "* Bumping version in scripts/rpm-prepare.sh"
|
|
sed -i "s/\(ODO_VERSION:=\)[0-9]*\.[0-9]*\.[0-9]*/\1${NEW_VERSION}/g" scripts/rpm-prepare.sh
|
|
check_version scripts/rpm-prepare.sh
|
|
|
|
echo "* Bumping version in Dockerfile.rhel"
|
|
sed -i "s/\(version=\)[0-9]*\.[0-9]*\.[0-9]*/\1${NEW_VERSION}/g" Dockerfile.rhel
|
|
check_version Dockerfile.rhel
|
|
|
|
echo "****************************************************************************************"
|
|
echo "* Don't forget to update homebrew package at https://github.com/kadel/homebrew-odo ! *"
|
|
echo "****************************************************************************************"
|
|
|
|
echo "****************************************************************************************"
|
|
echo "* Don't forget to update build/VERSION once the binaries become available ! *"
|
|
echo "****************************************************************************************"
|