summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@seravo.fi>2015-07-22 13:45:43 +0300
committerSergei Golubchik <serg@mariadb.org>2015-12-11 15:29:02 +0100
commita60da7358594631872c40d0ea3a8558f9c755e52 (patch)
treecabf3a7c8b4ac95151f714b9d73cd84d2e02144a /debian
parentc5e7098d0f193726e74ea681dc05385bd82d401f (diff)
downloadmariadb-git-a60da7358594631872c40d0ea3a8558f9c755e52.tar.gz
Make autobake-deb.sh to omit .git directory from source tar.gz
This is useful for developers who run autobake-deb.sh directly from the source tree as the resulting source tar package will be 90% smaller and all operations regarding it consequently 10x faster.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/autobake-deb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh
index e263feaef10..bb14057b43b 100755
--- a/debian/autobake-deb.sh
+++ b/debian/autobake-deb.sh
@@ -77,8 +77,9 @@ dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTR
echo "Creating package version ${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME} ... "
# Build the package.
-#
-fakeroot dpkg-buildpackage -us -uc
+# Pass -I so that .git and other unnecessary temporary and source control files
+# will be ignored by dpkg-source when createing the tar.gz source package
+fakeroot dpkg-buildpackage -us -uc -I
[ -e debian/autorm-file ] && rm -vf `cat debian/autorm-file`