diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-05-05 16:05:09 +0200 |
---|---|---|
committer | Antti Kokko <antti.kokko@digia.com> | 2014-05-06 10:28:06 +0200 |
commit | cdd2f3fb31054bbfe20a7fb793afad066faa6f18 (patch) | |
tree | 555357e466f3135a137196f087dcafd39196bdce /packaging-tools/mksrc.sh | |
parent | f9eada866d22d6375137a487a163aad2f262b470 (diff) |
Add support for submodules in single repo source packaging
This includes submodules in the source packages if present in the repository to
package.
As this is currently only needed for enterprise packaging, it's scoped accordingly.
Change-Id: Iaf971a04a5687e2af393316b5814e0b817c49a14
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Antti Kokko <antti.kokko@digia.com>
Diffstat (limited to 'packaging-tools/mksrc.sh')
-rwxr-xr-x | packaging-tools/mksrc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging-tools/mksrc.sh b/packaging-tools/mksrc.sh index 16ce972ee..e548f6deb 100755 --- a/packaging-tools/mksrc.sh +++ b/packaging-tools/mksrc.sh @@ -347,6 +347,10 @@ else #archive the single repo git archive --format=tar $REPO_TAG | tar -x -C $_TMP_DIR + if [ $LICENSE = enterprise ]; then + git submodule update --init + git submodule foreach "git archive HEAD | tar -x -C $_TMP_DIR/\$path" + fi _SHA=`git rev-parse $REPO_TAG` SINGLEMODULE_SHA=$_SHA |