[Pkg-mozext-commits] [SCM] styles manager to customize web sites with themes and skins branch, master, updated. debian/1.3.1+git20130116-1-3-g732d128

Dmitry Smirnov onlyjob at member.fsf.org
Thu Feb 28 05:45:06 UTC 2013


The following commit has been merged in the master branch:
commit 732d128b9c357fdffeda8ae6809ef27e5e3c01ff
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date:   Sun Feb 3 15:40:12 2013 +1100

    get-orig-source to generate binary identical orig.tar.xz
    
     * Set times:
       + on files after git clone.
       + on generated ChangeLog.
       + on directories after clean-up.
     * Set attributes and ownership when packing.

diff --git a/debian/rules b/debian/rules
index ede4455..4761c23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,14 +31,21 @@ get-orig-source: $(PKG)_$(VER).orig.tar.xz
 $(PKG)_$(VER).orig.tar.xz:
 	@echo "# Downloading..."
 	#uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
-	git clone git://github.com/JasonBarnabe/stylish.git $(PKG)-$(VER)
+	git clone git://github.com/JasonBarnabe/stylish.git $(PKG)-$(VER) \
+	|| $(RM) -r $(PKG)-$(VER)
 	cd $(PKG)-$(VER) \
 	&& git reset --hard $$(git rev-list --all -n 1 --before="$(GDATE) +0000") \
 	&& git checkout master \
 	&& [ -s ChangeLog ] || ( echo "# Generating ChangeLog..." \
-	   ; git log --pretty="format:%ad  %aN  <%aE>%n%n%x09* %s%n" --date=short > ChangeLog ) \
-	&& mv stylish-firefox/* . \
-	&& $(RM) -r .git .git* stylish-chrome stylish-firefox \
+           ; git log --pretty="format:%ad  %aN  <%aE>%n%n%x09* %s%n" --date=short > ChangeLog \
+           ; touch -d "$(GDATE) 0:0:0 +0000" ChangeLog) \
+	&& echo "# Setting times..." \
+        && for F in $$(git ls-tree -r --name-only HEAD); do touch -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \
+	&& echo "# Cleaning-up..." \
+        && mv stylish-firefox/* . \
+        && $(RM) -rv .git .git* stylish-chrome stylish-firefox \
+	&& echo "# Re-setting dir. times..." \
+        && find . -xdev -type d -exec touch -d "$(GDATE) 0:0:0 +0000" '{}' \;\
 	&& cd .. && echo "# Packing..." \
-	&& tar -caf $(PKG)_$(VER).orig.tar.xz $(PKG)-$(VER) --owner=root --group=root --mode=a+rX --mtime=$(GDATE)
+        && tar -caf $(PKG)_$(VER).orig.tar.xz $(PKG)-$(VER) --owner=root --group=root --mode=a+rX
 	$(RM) -r $(PKG)-$(VER)

-- 
styles manager to customize web sites with themes and skins



More information about the Pkg-mozext-commits mailing list