diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index f75c82f82..3ebc510fa 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -163,8 +163,19 @@ if [ $? -ne 0 ]; then fi; cd "$DIRECTORY.orig"; +# Init submodules git submodule init git submodule update --init --recursive + +# Cleanup +rm -rf .git +rm .gitignore +cd ../ + +tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig +cd $DIRECTORY.orig + +# Generate Changlog if [ "$DISTRO" == "trusty" ] || [ "$DISTRO" == "precise" ]; then mv distros/ubuntu1204 debian else @@ -189,12 +200,6 @@ if [ "$URGENCY" = "" ]; then URGENCY="medium" fi; -rm -rf .git -rm .gitignore -cd ../ -tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig -cd $DIRECTORY.orig - if [ "$SNAPSHOT" == "stable" ]; then cat < debian/changelog zoneminder ($VERSION-$DISTRO${PACKAGE_VERSION}) $DISTRO; urgency=$URGENCY