build: allow building from source zip file.

Changes both how we construct it and how we deal with not having git.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-11 15:26:30 +10:30
parent 75df22e9e2
commit 0d5f0d79da
3 changed files with 13 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ if [ $# = 0 ]; then
exit 1
fi
# If no git dir, forget it.
[ -d .git ] || exit 0
# git submodule can't run in parallel. Really.
if ! mkdir .refresh-submodules 2>/dev/null ; then
exit 0