aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/pytorch/files/get_third_parties')
-rw-r--r--sci-libs/pytorch/files/get_third_parties20
1 files changed, 0 insertions, 20 deletions
diff --git a/sci-libs/pytorch/files/get_third_parties b/sci-libs/pytorch/files/get_third_parties
deleted file mode 100644
index 8c38a9b73..000000000
--- a/sci-libs/pytorch/files/get_third_parties
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-path_url() {
- local dir=$(dirname $1)/
- git config --file $1 --get-regexp '(path|url)' | sed -r -e "N;s,[^ ]* ([^ ]*)\n[^ ]* ([^ ]*),${dir#./}\1 \2,"
-}
-
-join \
- <(for gm in $(find . -name '.gitmodules' | sort -r); do path_url $gm; done | sort -u) \
- <(git submodule status --recursive | awk '{print $2 " " $1}' | sort -u) | \
-while read path url hash; do
- [[ ${path} =~ (eigen|six|ios|neon2sse|protobuf|pybind11|python-enum|tbb|zstd|fbjni) ]] && continue
- u=${url%.git}
- hfull=${hash#-}
- h=${hfull:0:8}
- p=$(basename $u)
- echo "${u}/archive/${h}.tar.gz -> ${p}-${h}.tar.gz" >> SRC_URI
- [[ $p = fbgemm ]] && p=${p^^}
- echo "rmdir ${path} && ln -sv \"\${WORKDIR}\"/${p}-${hfull} ${path}" >> src_prepare
-done