Commit 9dfac908 authored by Mike Gabriel's avatar Mike Gabriel

debian/rules: In get-orig-source, ensure creation of a proper upstream...

debian/rules: In get-orig-source, ensure creation of a proper upstream ChangeLog from the Git commits. Overwrite un-maintained / existing ChangeLog.
parent 47bc303d
......@@ -51,8 +51,8 @@ $(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: GIT Revision=$(UREV))
|| $(RM) -r $(PKG)-$(VER)
cd $(PKG)-$(VER) \
&& git checkout "$(UREV)" \
&& [ -s ChangeLog ] || ( echo "# Generating ChangeLog..." \
; git log --pretty="format:%ad %aN <%aE>%n%n%x09* %s%n" --date=short > ChangeLog \
&& ( echo "# Generating ChangeLog..." \
; git --no-pager log --format="%ai %aN (%h) %n%n%x09*%w(68,0,10) %s%d%n" > ChangeLog \
; touch -d "$$(git log -1 --format='%ci')" ChangeLog) \
&& echo "# Setting times..." \
&& for F in $$(git ls-tree -r --name-only HEAD); do touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment