Skip to content

Commit 5a3d752

Browse files
committed
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.
1 parent 220b4f2 commit 5a3d752

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

debian/autobake-deb.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTR
5454
echo "Creating package version ${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME} ... "
5555

5656
# Build the package.
57-
#
58-
fakeroot dpkg-buildpackage -us -uc
57+
# Pass -I so that .git and other unnecessary temporary and source control files
58+
# will be ignored by dpkg-source when createing the tar.gz source package
59+
fakeroot dpkg-buildpackage -us -uc -I
5960

6061
[ -e debian/autorm-file ] && rm -vf `cat debian/autorm-file`
6162

0 commit comments

Comments
 (0)