diff --git a/scripts/check-change.sh b/scripts/check-change.sh index 8fbc5a1..d4502b9 100755 --- a/scripts/check-change.sh +++ b/scripts/check-change.sh @@ -1,8 +1,25 @@ #!/bin/bash -e +# Copyright 2023 Indent 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 that file matches version committed in Git. +# Compared against the current HEAD, or the commit specified by GITHUB_SHA. +# Usage: scripts/check-change.sh + GITHUB_SHA=${GITHUB_SHA:-$(git rev-parse HEAD)} -# Check that file matches the version in Git function main() { local files=${@} for f in ${files}; do diff --git a/scripts/get.sh b/scripts/get.sh index 599fce3..51c364e 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -1,5 +1,22 @@ #!/usr/bin/env bash +# Copyright 2023 Indent 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. + +# This script downloads named dependencies to the _proto directory. +# Usage: scripts/get.sh [ ...] + set -euo pipefail SUMS="$(dirname "$(readlink -f "$0")")/get.sha256"