[libjide-oss-java] 02/10: Produce identical tarballs.
Markus Koschany
apo-guest at alioth.debian.org
Sun Aug 4 11:08:54 UTC 2013
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch master
in repository libjide-oss-java.
commit ee9e0909b3622ff95abd288b352efeed483d9067
Author: Markus Koschany <apo at gambaru.de>
Date: Sun Aug 4 12:36:51 2013 +0200
Produce identical tarballs.
Improve get-orig-source target by setting the timestamps correctly and by
sorting the files before the compression step with tar.
---
debian/rules | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 8396059..667c1db 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,11 +26,14 @@ $(PKG)_$(VER).orig.tar.xz:
@echo "# Clean-up..."
cd $(PKG)-$(VER) \
&& git checkout -b debiansource $(VER) \
+ && for F in $$(git ls-tree -r --name-only HEAD); \
+ do touch --no-dereference -d "$$(git log -1 --format="%ai" -- "$$F")" "$$F"; done \
&& git log --pretty --numstat --summary | git2cl > ChangeLog \
&& $(RM) -r -v \
libs/ \
src/com/jidesoft/plaf/aqua/AquaRangeSliderUI.java \
.git/
@echo "# Packing..."
- tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" "$(PKG)-$(VER)" \
+ find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+ | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
&& $(RM) -r "$(PKG)-$(VER)"
--
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-java/libjide-oss-java.git
More information about the pkg-java-commits
mailing list