[PATCH util/macros 2/2] autogen.sh: set sendemail.to as applicable

Peter Hutterer peter.hutterer at who-t.net
Fri Jan 27 04:50:48 UTC 2017


On Thu, Jan 26, 2017 at 05:48:10PM +0000, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
> 
> Similar to the patch subject prefix we might as well handle the
> sendemail setting.
> 
> Cc: Peter Hutterer <peter.hutterer at who-t.net>
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> Here is another couple of patches that might be good to have tree-wide.
> 1/2 might be picky depending on how funny git decides to be.

now I'm thinking: should we provide a xorg-prepare-git-repo.sh script with
the macros and run that from autogen? They're needed anyway, so...

Touching tens of repositories is a lot of fun, but not really :)

to answer the next question:

first line in autogen.sh can be modulename="driver foo" and we can pass that
into the script. because I'm also tempted to auto-enable a git hook that
calls make before push ;)

Cheers,
   Peter

> ---
>  autogen.sh | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/autogen.sh b/autogen.sh
> index fe4d322..2a02ae4 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -6,6 +6,9 @@ test -z "$srcdir" && srcdir=.
>  ORIGDIR=`pwd`
>  cd "$srcdir"
>  
> +git config --local --get sendemail.to >/dev/null 2>&1 ||
> +    git config --local sendemail.to "xorg-devel at lists.x.org"
> +
>  git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
>      git config --local format.subjectPrefix "PATCH util/macros"
>  
> -- 
> 2.11.0
> 


More information about the xorg-devel mailing list