summaryrefslogtreecommitdiff
path: root/update-submodule
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-11-12 20:18:12 +0100
committerErich Eckner <git@eckner.net>2020-11-15 18:34:55 +0100
commite3faef3ba3c25d15f831cf84743795b689c2352e (patch)
treeb1e0faf01328e184a8d3f88989247fd31a511971 /update-submodule
parent8eeeecace2d3e740b089f135b30cbc5128b3c2db (diff)
downloadarchlinuxewe-e3faef3ba3c25d15f831cf84743795b689c2352e.tar.xz
update-submodule is obsolete
Diffstat (limited to 'update-submodule')
-rwxr-xr-xupdate-submodule34
1 files changed, 0 insertions, 34 deletions
diff --git a/update-submodule b/update-submodule
deleted file mode 100755
index 326cbe3c6..000000000
--- a/update-submodule
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-pkgSrcDir="$1"
-submoduleDir="$2"
-url="$3"
-path="${url%% *}"
-url="${url#${path} }"
-
-if [ -d "${path}" ] && [ -n "$(ls -A "${path}")" ]; then
- git -C "${pkgSrcDir}" submodule update 2>/dev/null || true
- exit
-fi
-
-if [ ! -f "${path}" ]; then
- >&2 echo 'update-submodule needs a commit'
- >&2 printf '"%s" ' "$@"
- >&2 printf '\n'
- exit 1
-fi
-
-commit=$(cat "${path}")
-rm "${path}"
-mkdir -p "${path}"
-if [ -d "${submoduleDir}" ]; then
- upstream="${submoduleDir}/${path}"
- if [ ! -d "${upstream}" ]; then
- git clone -q "${url}" "${upstream}"
- fi
-else
- upstream="${pkgSrcDir}/${path}"
-fi
-git -C "${upstream}" pull -q --ff-only
-git -C "${upstream}" archive "${commit}" \
-| tar -C "${path}" -x