diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-10-20 16:19:38 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-10-20 16:21:26 +0200 |
commit | ddffb491fb7c428f2e57281458fc5153d2e0fdb0 (patch) | |
tree | 17ea8044a87726daa37c73f06f7819cccc69855c | |
parent | 4bb1aab26319671a8ba40b663a07c0cf6213164b (diff) | |
download | buildscripts-ddffb491fb7c428f2e57281458fc5153d2e0fdb0.tar.gz buildscripts-ddffb491fb7c428f2e57281458fc5153d2e0fdb0.tar.bz2 buildscripts-ddffb491fb7c428f2e57281458fc5153d2e0fdb0.zip |
sbuild-deb-package: Add git submodule support.
-rwxr-xr-x | bin/sbuild-deb-package | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package index 8d35e3c..9f30090 100755 --- a/bin/sbuild-deb-package +++ b/bin/sbuild-deb-package @@ -226,6 +226,11 @@ build_packages() { git clone --no-hardlinks --no-local "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/" cd "${TEMP_DIR}/${PROJECT}" git checkout "${CHECKOUT}" || git checkout master + if [ -e .gitmodules ]; then + git submodule init + git submodule update --force --checkout --recursive + fi + find "${PROJECT_DIR}/../" -maxdepth 0 -mindepth 0 -type f | grep -qs "${PROJECT}_"*.orig.tar.gz && cp -- "${PROJECT_DIR}/../${PROJECT}_"*.orig.tar.gz .. GITREV="$(gitrevno)" |