Skip to content

Commit

Permalink
add docs and license to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ethernetdan committed Sep 29, 2023
1 parent 6c9fd83 commit 2b0ec5e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
19 changes: 18 additions & 1 deletion scripts/check-change.sh
Original file line number Diff line number Diff line change
@@ -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 <file>

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
Expand Down
17 changes: 17 additions & 0 deletions scripts/get.sh
Original file line number Diff line number Diff line change
@@ -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 <name> [<name> ...]

set -euo pipefail

SUMS="$(dirname "$(readlink -f "$0")")/get.sha256"
Expand Down

0 comments on commit 2b0ec5e

Please sign in to comment.