From b1dc373ed9245975a7c2ef8491135ca034595407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haris=20Osmanagi=C4=87?= Date: Thu, 17 Oct 2024 18:32:14 +0200 Subject: [PATCH] Add installation script (#1921) --- scripts/bump-builtin-connectors.sh | 15 +++++++++++++++ scripts/bump-sdk-in-connectors.sh | 15 +++++++++++++++ scripts/check-go-version.sh | 14 ++++++++++++++ scripts/get-compare-link.sh | 14 ++++++++++++++ scripts/tag.sh | 15 +++++++++++++++ 5 files changed, 73 insertions(+) diff --git a/scripts/bump-builtin-connectors.sh b/scripts/bump-builtin-connectors.sh index 22d4d3e60..367a93c51 100755 --- a/scripts/bump-builtin-connectors.sh +++ b/scripts/bump-builtin-connectors.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright © 2023 Meroxa, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Bumps the versions of built-in connectors. # Requires GitHub CLI. diff --git a/scripts/bump-sdk-in-connectors.sh b/scripts/bump-sdk-in-connectors.sh index 0d55dd303..84df58dc1 100755 --- a/scripts/bump-sdk-in-connectors.sh +++ b/scripts/bump-sdk-in-connectors.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright © 2023 Meroxa, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Bumps the SDK version in the built-in connectors. # The script assumes that the Conduit repo and the repos # for all built-in connectors are in the same directory. diff --git a/scripts/check-go-version.sh b/scripts/check-go-version.sh index 8b75dee69..514de1bb4 100755 --- a/scripts/check-go-version.sh +++ b/scripts/check-go-version.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright © 2022 Meroxa, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # checks if the installed Go version is less than the required version. # returns a warning message if it's less than required. diff --git a/scripts/get-compare-link.sh b/scripts/get-compare-link.sh index 90424abff..5abfbb473 100755 --- a/scripts/get-compare-link.sh +++ b/scripts/get-compare-link.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright © 2024 Meroxa, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Check if the correct number of arguments are provided if [ "$#" -ne 1 ]; then echo "Usage: $0 " diff --git a/scripts/tag.sh b/scripts/tag.sh index a9defe831..0256e75ed 100755 --- a/scripts/tag.sh +++ b/scripts/tag.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright © 2022 Meroxa, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + TAG=$1 SV_REGEX="^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$"