Skip to content

Commit a60da73

Browse files
ottokvuvova
authored andcommitted
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 c5e7098 commit a60da73

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
@@ -77,8 +77,9 @@ dch -b -D ${CODENAME} -v "${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTR
7777
echo "Creating package version ${UPSTREAM}${PATCHLEVEL}-${RELEASE_NAME}${RELEASE_EXTRA:+-${RELEASE_EXTRA}}1~${CODENAME} ... "
7878

7979
# Build the package.
80-
#
81-
fakeroot dpkg-buildpackage -us -uc
80+
# Pass -I so that .git and other unnecessary temporary and source control files
81+
# will be ignored by dpkg-source when createing the tar.gz source package
82+
fakeroot dpkg-buildpackage -us -uc -I
8283

8384
[ -e debian/autorm-file ] && rm -vf `cat debian/autorm-file`
8485

0 commit comments

Comments
 (0)