Browse files

Added a bunch of dpkg-source options to try and reduce the size of th…

…e tar.gz
  • Loading branch information...
1 parent 28e0452 commit d2375049617a58b485a57b028699597e4f3f51e7 @mjollnir mjollnir committed Feb 21, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3
@@ -169,10 +169,13 @@
# control needs to be built up separately but in a different way
+`mkdir -p debian/source`;
+`echo '3.0 (native)' > debian/source/format`;
+`echo 'diff-ignore = \.git' > debian/source/options`;
+`echo 'tar-ignore = .git/*' >> debian/source/options`;
# Build the package
-#`dpkg-buildpackage -rfakeroot -us -uc --source-option=--format='3.0 (native)'`; # use native to stop complaints about <packagename>.<upstreamversion>
-print "NOTE: ignore any warnings about dpkg-source: warning: source directory 'XXX' is not <sourcepackage>-<upstreamversion>\n";
-`dpkg-buildpackage -rfakeroot -us -uc`;
+`dpkg-buildpackage -rfakeroot -us -uc -i -I`;
if ($? gt 0) {
die("It appears dpkg-buildpackage failed to run. Not cleaning out the debian directory!");
exit 1;

0 comments on commit d237504

Please sign in to comment.