[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Git packaging workflow discussion on planet.d.o



On Thu, Apr 04, 2013 at 11:07:04PM +0800, Thomas Goirand wrote:
> Well, if you really want to generate these from Git, that's
> also possible (though the changelog might be quite big, so
> in some cases, I'm about to give up on that...):
> 
> gen-upstream-changelog:
>         git checkout master
>         git reset --hard $(GIT_TAG)
>         git log >$(CURDIR)/../CHANGELOG
>         git checkout debian/$(DEBFLAVOR)
>         mv $(CURDIR)/../CHANGELOG $(CURDIR)/debian/CHANGELOG
>         git add $(CURDIR)/debian/CHANGELOG
>         git commit -a -m "Updated upstream changelog"
> 
> override_dh_installchangelogs:
>         if [ -e $(CURDIR)/debian/CHANGELOG ] ; then \
>                 dh_installchangelogs $(CURDIR)/debian/CHANGELOG ; \
>         else \
>                 dh_installchangelogs ; \
>         fi
> 
> gen-author-list:
>         git log --format='%aN <%aE>' | awk '{arr[$$0]++} END{for (i in
> arr){print arr[i], i;}}' | sort -rn | cut -d' ' -f2-
> 
> I use often the above gen-author-list for the debian/copyright file.

Hmmm, you just show some more code as in your blog but this is not
addressing the three flaws of the workflow I was mentioning in my
initial mail.  I'm honestly wondering whether I'm missing something
and these are non-issues.

Kind regards

      Andreas.

-- 
http://fam-tille.de


Reply to: