#!/bin/sh -e

TAG=$1
PREV_TAG=$2

git submodule update --init

git checkout refs/tags/$TAG
git log --pretty=fuller --date=short refs/tags/$PREV_TAG..HEAD > ChangeLog

git submodule update --init
./configure --with-mruby && \
    make dist-bzip2 && make dist-gzip && make dist-xz || echo "error"
make distclean

#!/bin/sh -e

TAG=$1
PREV_TAG=$2

git checkout refs/tags/$TAG
git log --pretty=fuller --date=short refs/tags/$PREV_TAG..HEAD > ChangeLog

git submodule update --init
./configure --with-mruby && \
    make dist-bzip2 && make dist-gzip && make dist-xz || echo "error"
make distclean

--- 
+++ 
@@ -2,6 +2,8 @@
 
 TAG=$1
 PREV_TAG=$2
+
+git submodule update --init
 
 git checkout refs/tags/$TAG
 git log --pretty=fuller --date=short refs/tags/$PREV_TAG..HEAD > ChangeLog
Call git submodule before creating packages
