Browse Source

make-release: Copy submodules from local system

Luke Dashjr 11 years ago
parent
commit
34918bdb22
1 changed files with 4 additions and 0 deletions
  1. 4 0
      make-release

+ 4 - 0
make-release

@@ -35,6 +35,10 @@ git branch TMP "$tag"
 git clone . "$TMPDIR" -b TMP --depth 1
 git branch -D TMP
 cd "$TMPDIR"
+sed 's/^\[submodule "\(.*\)"\]$/\1/;t;d' .gitmodules |
+ while read submodule; do
+	git config submodule.$submodule.url "$IDIR/.git/modules/$submodule"
+done
 git submodule update --init
 {
 	git archive --prefix "$sw"/ --format tar "$tag"