diff --git a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/cloudbuild/build.sh b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/cloudbuild/build.sh index d58e060f266a128e9c65a46e7bf58ed839752fa9..36ff64b0cf1e0d9499ff9de774522da1bdd5c8f3 100644 --- a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/cloudbuild/build.sh +++ b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/cloudbuild/build.sh @@ -1,2 +1,38 @@ #!/bin/bash -conda build $(dirname $(dirname "$0"))/recipe + +function is_expected_architecture() { + if [ $(uname -m) != "$1" ]; then + echo -e "\033[1;31;1mThe current script only supports execution on $1 architecture.\033[0m" + return 1 + fi +} + +function set_script_dir() { + local REL_SCRIPT_DIR + REL_SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" || return 1 + SCRIPT_DIR="$(cd "${REL_SCRIPT_DIR}" && pwd)" || return 1 +} + +function conda_initialize() { + __conda_setup="$("$1/bin/conda" 'shell.bash' 'hook' 2>/dev/null)" + if [ $? -eq 0 ]; then + eval "$__conda_setup" + else + if [ -f "$1/etc/profile.d/conda.sh" ]; then + . "$1/etc/profile.d/conda.sh" + else + export PATH="$1/bin:$PATH" + fi + fi + unset __conda_setup +} + +function main() { + is_expected_architecture aarch64 || return 1 + set_script_dir || return 1 + conda_initialize "$1" + conda build "$(dirname "$SCRIPT_DIR")/recipe" +} + +# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/cloudbuild/build.sh /root/anaconda3 +main "$@" diff --git a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_expected_data.sh b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_expected_data.sh index bc218e6580843979551de0289863bf46edd60766..217e829f66c0ec0b64288439f4c9ebfa155c028b 100644 --- a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_expected_data.sh +++ b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_expected_data.sh @@ -46,5 +46,5 @@ function main() { fi } -# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_expected_data.sh /opt/anaconda3 +# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_expected_data.sh /root/anaconda3 main "$@" diff --git a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh index 18727832382a3f21006cba1ca1d02a8e56a5d85f..28bf8a6328bfc188df60cd595168da13c2803916 100644 --- a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh +++ b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh @@ -24,5 +24,5 @@ function main() { fi } -# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh /opt/anaconda3 +# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh /root/anaconda3 main "$@" diff --git a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/run_test.sh b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/run_test.sh index 9a37c3b764572b799f769018a201c12566c25f7a..a4f17f4a5818157989872f3ca53d7fe3cdb5fdb0 100755 --- a/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/run_test.sh +++ b/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/run_test.sh @@ -64,5 +64,5 @@ function main() { test_clean "${TEST_CASE_DIR}" "${EXPECTED_DIR}" "${PRACTICAL_DIR}" || return 1 } -# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh /opt/anaconda3 +# /bin/bash ~/hpc/Anaconda/bioconda/kallisto/0.48.0/h0d531b0_1/test/generate_practical_data.sh /root/anaconda3 main "$@"