[Pkg-haskell-commits] darcs: tools: Exclude unwanted stuff when creating debian.tar.gz file
Joachim Breitner
mail at joachim-breitner.de
Sun Oct 14 09:36:59 UTC 2012
Sun Oct 14 08:11:42 UTC 2012 Joachim Breitner <mail at joachim-breitner.de>
* Exclude unwanted stuff when creating debian.tar.gz file
Ignore-this: 886d3b144cfd9f9f99d6b413e47429a2
M ./debian2dsc.sh -1 +8
Sun Oct 14 08:11:42 UTC 2012 Joachim Breitner <mail at joachim-breitner.de>
* Exclude unwanted stuff when creating debian.tar.gz file
Ignore-this: 886d3b144cfd9f9f99d6b413e47429a2
diff -rN -u old-tools//debian2dsc.sh new-tools//debian2dsc.sh
--- old-tools//debian2dsc.sh 2012-10-14 09:36:58.847766099 +0000
+++ new-tools//debian2dsc.sh 2012-10-14 09:36:58.862277881 +0000
@@ -78,7 +78,14 @@
fi
DEBIAN_TARBALL=${PACKAGE}_${VERSION}.debian.tar.gz
- tar --create --gzip --transform s,^.,debian, --file $DEBIAN_TARBALL --directory $DIR .
+ # -I line taken from "man dpkg-source"
+ tar --create \
+ --gzip \
+ --transform s,^.,debian, \
+ --file $DEBIAN_TARBALL \
+ --directory $DIR \
+ "--exclude=*.a" "--exclude=*.la" "--exclude=*.o" "--exclude=*.so" "--exclude=.*.sw?" "--exclude=*/*~" "--exclude=,,*" "--exclude=.[#~]*" "--exclude=.arch-ids" "--exclude=.arch-inventory" "--exclude=.be" "--exclude=.bzr" "--exclude=.bzr.backup" "--exclude=.bzr.tags" "--exclude=.bzrignore" "--exclude=.cvsignore" "--exclude=.deps" "--exclude=.git" "--exclude=.gitattributes" "--exclude=.gitignore" "--exclude=.gitmodules" "--exclude=.hg" "--exclude=.hgignore" "--exclude=.hgsigs" "--exclude=.hgtags" "--exclude=.shelf" "--exclude=.svn" "--exclude=CVS" "--exclude=DEADJOE" "--exclude=RCS" "--exclude=_MTN" "--exclude=_darcs" "--exclude={arch}" \
+ .
dpkg-source \
-c$DIR/control -l$DIR/changelog \
--format="3.0 (custom)" --target-format="3.0 (quilt)" \
More information about the Pkg-haskell-commits
mailing list