From 2bf9c04046d679089043f301c334b645a9853d9d Mon Sep 17 00:00:00 2001 From: Cyrill Leutwiler Date: Thu, 11 Apr 2024 17:52:44 +0200 Subject: [PATCH] Fix CI: SPDX headers in shell scripts (#1638) --- integration/polkadot/build.sh | 2 ++ .../01_solang_remap_target/run.sh | 2 ++ .../02_solang_incorrect_direct_imports/run.sh | 2 ++ .../03_ambiguous_imports_should_fail/run.sh | 2 ++ .../04_multiple_map_path_segments/run.sh | 2 ++ .../05_import_path_order_should_not_matter/run.sh | 2 ++ .../solang_import_resolution_tests/06_redundant_remaps/run.sh | 2 ++ testdata/solang_import_resolution_tests/run.sh | 2 ++ testdata/solang_import_resolution_tests/util.sh | 2 ++ 9 files changed, 18 insertions(+) diff --git a/integration/polkadot/build.sh b/integration/polkadot/build.sh index 107478dfe..52b548a27 100755 --- a/integration/polkadot/build.sh +++ b/integration/polkadot/build.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 + set -e dup_contracts=$(grep -r '^contract .* {' | grep -v node_modules | awk '{ print $2 }' | sort | uniq -d) diff --git a/testdata/solang_import_resolution_tests/01_solang_remap_target/run.sh b/testdata/solang_import_resolution_tests/01_solang_remap_target/run.sh index 82a6adee9..e87279a38 100755 --- a/testdata/solang_import_resolution_tests/01_solang_remap_target/run.sh +++ b/testdata/solang_import_resolution_tests/01_solang_remap_target/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + # shellcheck source=/dev/null source "../util.sh" diff --git a/testdata/solang_import_resolution_tests/02_solang_incorrect_direct_imports/run.sh b/testdata/solang_import_resolution_tests/02_solang_incorrect_direct_imports/run.sh index ee1c54df8..e02376476 100755 --- a/testdata/solang_import_resolution_tests/02_solang_incorrect_direct_imports/run.sh +++ b/testdata/solang_import_resolution_tests/02_solang_incorrect_direct_imports/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + # shellcheck source=/dev/null source "../util.sh" diff --git a/testdata/solang_import_resolution_tests/03_ambiguous_imports_should_fail/run.sh b/testdata/solang_import_resolution_tests/03_ambiguous_imports_should_fail/run.sh index 1acc50275..92db8cc80 100755 --- a/testdata/solang_import_resolution_tests/03_ambiguous_imports_should_fail/run.sh +++ b/testdata/solang_import_resolution_tests/03_ambiguous_imports_should_fail/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + # shellcheck source=/dev/null source "../util.sh" diff --git a/testdata/solang_import_resolution_tests/04_multiple_map_path_segments/run.sh b/testdata/solang_import_resolution_tests/04_multiple_map_path_segments/run.sh index ea58d7265..b9cee6869 100755 --- a/testdata/solang_import_resolution_tests/04_multiple_map_path_segments/run.sh +++ b/testdata/solang_import_resolution_tests/04_multiple_map_path_segments/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + # shellcheck source=/dev/null source "../util.sh" diff --git a/testdata/solang_import_resolution_tests/05_import_path_order_should_not_matter/run.sh b/testdata/solang_import_resolution_tests/05_import_path_order_should_not_matter/run.sh index 9293665b8..a9e6cb318 100755 --- a/testdata/solang_import_resolution_tests/05_import_path_order_should_not_matter/run.sh +++ b/testdata/solang_import_resolution_tests/05_import_path_order_should_not_matter/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + # shellcheck source=/dev/null source "../util.sh" diff --git a/testdata/solang_import_resolution_tests/06_redundant_remaps/run.sh b/testdata/solang_import_resolution_tests/06_redundant_remaps/run.sh index 964f19957..7e1e43142 100755 --- a/testdata/solang_import_resolution_tests/06_redundant_remaps/run.sh +++ b/testdata/solang_import_resolution_tests/06_redundant_remaps/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + # shellcheck source=/dev/null source "../util.sh" diff --git a/testdata/solang_import_resolution_tests/run.sh b/testdata/solang_import_resolution_tests/run.sh index ec82d8b37..6353e5f98 100755 --- a/testdata/solang_import_resolution_tests/run.sh +++ b/testdata/solang_import_resolution_tests/run.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + function print_test_set_banner { diff --git a/testdata/solang_import_resolution_tests/util.sh b/testdata/solang_import_resolution_tests/util.sh index 4ee7b4a89..2cdcd1149 100644 --- a/testdata/solang_import_resolution_tests/util.sh +++ b/testdata/solang_import_resolution_tests/util.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 + function run_solc { if [ -z ${SOLC+x} ]; then