File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ set -xe
4+
35# Note: The current working directory is the component's SPEC folder
46
57# The folder that will contain the .git/ and docs/ folders
6- DOCS_OHPC_FOLDER=docs-ohpc
8+ DOCS_OHPC_FOLDER=" docs-ohpc"
79# A folder that contains the full Git history of the project
810# Full history is needed for the usage of `git archive` command
911COMPLETE_OHPC_FOLDER=$( mktemp -d)
1012
1113cleanup () {
12- rm -rf ${DOCS_OHPC_FOLDER} ${COMPLETE_OHPC_FOLDER}
14+ rm -rf " ${DOCS_OHPC_FOLDER} " " ${COMPLETE_OHPC_FOLDER} "
1315}
1416trap cleanup EXIT
1517
1618# 1. Prepare
1719cleanup
18- mkdir -p ${DOCS_OHPC_FOLDER}
20+ mkdir -p " ${DOCS_OHPC_FOLDER} "
1921
2022# 2. Fetch the full Git history so that `git describe` works later
21- git clone https://github.com/openhpc/ohpc ${COMPLETE_OHPC_FOLDER}
22- cp -r ${COMPLETE_OHPC_FOLDER} /.git ${DOCS_OHPC_FOLDER}
23+ git clone https://github.com/openhpc/ohpc " ${COMPLETE_OHPC_FOLDER} "
24+ cp -r " ${COMPLETE_OHPC_FOLDER} /.git" " ${DOCS_OHPC_FOLDER} "
2325
2426# 3. Copy the local docs/
25- cp -r ../../../../docs ${DOCS_OHPC_FOLDER}
27+ cp -r ../../../../docs " ${DOCS_OHPC_FOLDER} "
2628
2729# 4. Create docs-ohpc.tar
28- tar cf ../SOURCES/docs-ohpc.tar ${DOCS_OHPC_FOLDER}
30+ tar cf ../SOURCES/docs-ohpc.tar " ${DOCS_OHPC_FOLDER} "
2931
3032# 5. Cleanup
3133cleanup
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ OHPC_ROOT_FOLDER="../../../.."
99TESTS_OHPC_FOLDER=tests-ohpc
1010
1111cleanup () {
12- rm -rf ${TESTS_OHPC_FOLDER}
12+ rm -rf " ${TESTS_OHPC_FOLDER} "
1313}
1414trap cleanup EXIT
1515
1616# 1. Prepare
1717cleanup
18- mkdir -p ${TESTS_OHPC_FOLDER}
18+ mkdir -p " ${TESTS_OHPC_FOLDER} "
1919
2020# 2. Copy the local docs/
21- cp -r ${OHPC_ROOT_FOLDER} /tests ${TESTS_OHPC_FOLDER}
21+ cp -r " ${OHPC_ROOT_FOLDER} /tests" " ${TESTS_OHPC_FOLDER} "
2222
2323# 3. Create tests-ohpc.tar
24- tar cf ../SOURCES/tests-ohpc.tar ${TESTS_OHPC_FOLDER}
24+ tar cf ../SOURCES/tests-ohpc.tar " ${TESTS_OHPC_FOLDER} "
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ shellcheck-lint:
4545 ../../misc/shell-functions \
4646 ../../tests/ci/prepare-ci-environment.sh \
4747 ../../tests/ci/setup_slurm_and_run_tests.sh \
48+ ../../components/admin/docs/SOURCES/get_source.sh \
49+ ../../components/admin/test-suite/SOURCES/get_source.sh \
4850 ../../tests/libs/netcdf/ohpc-tests/netcdf_all_test_mpi_families \
4951 ../../tests/libs/netcdf/ohpc-tests/test_mpi_families \
5052 ../../components/OHPC_setup_mpi \
You can’t perform that action at this time.
0 commit comments