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

Re: [RFC] Proposal for new source format



Hello,

On Wed 23 Oct 2019 at 09:49AM -04, Theodore Y. Ts'o wrote:

> Generating a reproducible source package given a particuar git commit
> is trivial.  All you have to do is use "git archive".  For example:
>
> #!/bin/bash
> #
> # Generate the e2fsprogs release tar ball
> #
>
> commit=HEAD
>
> if test -n "$1" ; then
>     commit="$1"
> fi
>
> ver=`git show ${commit}:version.h | grep E2FSPROGS_VERSION  \
> 	| awk '{print $3}' | tr \" " " | awk '{print $1}'`
> fn=e2fsprogs-${ver}.tar.gz
>
> git archive --prefix=e2fsprogs-${ver}/ ${commit} | gzip -9n > $fn
> echo "Generated $fn"
>
> Note that most of the hair is in deciding what *name* the source tar
> file.

Just for the benefit of those that might not know, this is implemented
in git-deborig in devscripts (though perhaps git-deborig doesn't quite
fit e2fsprogs's needs).

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature


Reply to: