The commands used and their output are not important and there are many of them, don't display them.
Use "git submodule foreach" to run "git archive" in all of the submodules as well. Also document the requirement to have GNU tar which is needed to be able to successfully extract several concatenated tar archives.