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

Re: debianization with files that change



On Sat, Jan 11, 2020 at 01:19:58PM +0000, David Griffith wrote:
> I think I've come up with what may be an ideal solution that lets me put the
> debian/ directory in the upstream.  Please let me know what you think.
> 
> deb:
> ifneq ($(and $(wildcard $(GIT_DIR)),$(shell which git)),)
>         git archive --format=tgz --prefix $(NAME)_$(VERSION).orig/ HEAD -o $(NAME)_$(VERSION).orig.tar.gz
>         git archive --format=tar --prefix $(NAME)_$(VERSION).orig/ HEAD | tar xf -
> else
>         @echo "Not in a git repository or git command not found.  Cannot build a deb this way."
> endif
>         cd $(NAME)_$(VERSION).orig/ ; dpkg-buildpackage -us -uc
> 
> Doing "make deb" will use git-archive(1) to spit out an original tarball
Ideally the orig tarball should be downloaded with uscan(1) instead.


-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: