autogen.sh: set format.subjectPrefix and sendemail.to if needed
PATCH 1/1 autogen.sh: set format.subjectPrefix and sendemail.to if needed
Just set the rules automatically rather than asking each contributor to update thing locally.
--- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+)
autogen.sh +6 -0
@@ -9,6 +9,12 @@ cd "$srcdir" autoreconf --force --verbose --install || exit 1 cd "$ORIGDIR" || exit $? +git config --local --get format.subjectPrefix || + git config --local format.subjectPrefix "PATCH libdrm" + +git config --local --get sendemail.to || + git config --local sendemail.to "[email protected]" + if test -z "$NOCONFIGURE"; then "$srcdir"/configure "$@" fi
Signature · 6 lines
2.10.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 13 lines · Emil Velikov
Just set the rules automatically rather than asking each contributor to update thing locally.
Signed-off-by Emil Velikov <[email protected]>--- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+)autogen.sh +0
-0
autogen.sh cd "$srcdir" · line 17
Quoted 9 lines
autogen.sh +6
-0@@ -9,6 +9,12 @@ cd "$srcdir" autoreconf --force --verbose --install || exit 1 cd "$ORIGDIR" || exit $? +git config --local --get format.subjectPrefix || + git config --local format.subjectPrefix "PATCH libdrm" + +git config --local --get sendemail.to || + git config --local sendemail.to "[email protected]" +
So I don't really play with libdrm source much, but can you expect this to only be run in a git repo? How about source/distro/tarball releases?
BR,
Jani.
Quoted 3 lines
autogen.sh +0
-0if test -z "$NOCONFIGURE"; then "$srcdir"/configure "$@" fi
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Eric Engestrom
Reviewed-byQuoted 17 lines · Jani Nikula
Quoted 16 lines · Emil Velikov
Just set the rules automatically rather than asking each contributor to update thing locally.
Signed-off-by Emil Velikov <[email protected]>--- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+)autogen.sh +0
-0@@ -9,6 +9,12 @@ cd "$srcdir" autoreconf --force --verbose --install || exit 1 cd "$ORIGDIR" || exit $?
Quoted 9 lines
autogen.sh cd "$srcdir" · line 17
Quoted 6 lines
autogen.sh +6
-0+git config --local --get format.subjectPrefix || + git config --local format.subjectPrefix "PATCH libdrm" + +git config --local --get sendemail.to || + git config --local sendemail.to "[email protected]" +So I don't really play with libdrm source much, but can you expect this to only be run in a git repo? How about source/distro/tarball releases?
These will print an error like this and not do anything, so it should be fine:
error: could not lock config file .git/config: No such file or directory
These errors should be hidden though, as we don't care about such failures, and the config reads should also be silenced as they will print the previously set values.
With that fixed:
Quoted 10 lines
BR,
Jani.Quoted 3 lines
autogen.sh +0
-0if test -z "$NOCONFIGURE"; then "$srcdir"/configure "$@" fiSignature · 1 line
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 32 lines · Eric Engestrom
Quoted 17 lines · Jani Nikula
Quoted 16 lines · Emil Velikov
Just set the rules automatically rather than asking each contributor to update thing locally.
Signed-off-by Emil Velikov <[email protected]>--- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+)autogen.sh +0
-0@@ -9,6 +9,12 @@ cd "$srcdir" autoreconf --force --verbose --install || exit 1 cd "$ORIGDIR" || exit $?Quoted 9 lines
autogen.sh cd "$srcdir" · line 17
Quoted 6 lines
autogen.sh +6
-0+git config --local --get format.subjectPrefix || + git config --local format.subjectPrefix "PATCH libdrm" + +git config --local --get sendemail.to || + git config --local sendemail.to "[email protected]" +So I don't really play with libdrm source much, but can you expect this to only be run in a git repo? How about source/distro/tarball releases?
These will print an error like this and not do anything, so it should be fine:
error: could not lock config file .git/config: No such file or directory
Quoted 7 lines
These errors should be hidden though, as we don't care about such failures, and the config reads should also be silenced as they will print the previously set values.
With that fixed:
Reviewed-by Eric Engestrom <[email protected]>
Actually we don't ship autogen.sh within the tarball, but regardless. With a simple "2>/dev/null" things seems to be fine ...
Thanks
EmilP.S. I wonder if we really shouldn't do this for wayland/weston, Xorg, and dozens of others ;-)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 13 lines · Emil Velikov
Just set the rules automatically rather than asking each contributor to update thing locally.
Signed-off-by Emil Velikov <[email protected]>--- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+)autogen.sh +0
-0
autogen.sh cd "$srcdir" · line 16
Quoted 8 lines
autogen.sh +5
-0@@ -9,6 +9,12 @@ cd "$srcdir" autoreconf --force --verbose --install || exit 1 cd "$ORIGDIR" || exit $? +git config --local --get format.subjectPrefix || + git config --local format.subjectPrefix "PATCH libdrm" + +git config --local --get sendemail.to || + git config --local sendemail.to "[email protected]"
This is nice in general, but e.g. patches for the amdgpu/radeon subdirectories should go to the amd-gfx list instead, and possibly also have a different subject prefix. But maybe this is a good starting point anyway.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 17 lines · Michel Dänzer
Quoted 16 lines · Emil Velikov
Just set the rules automatically rather than asking each contributor to update thing locally.
Signed-off-by Emil Velikov <[email protected]>--- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+)autogen.sh +0
-0@@ -9,6 +9,12 @@ cd "$srcdir" autoreconf --force --verbose --install || exit 1 cd "$ORIGDIR" || exit $?
Quoted 11 lines
autogen.sh cd "$srcdir" · line 16
Quoted 5 lines
autogen.sh +5
-0+git config --local --get format.subjectPrefix || + git config --local format.subjectPrefix "PATCH libdrm" + +git config --local --get sendemail.to || + git config --local sendemail.to "[email protected]"This is nice in general, but e.g. patches for the amdgpu/radeon subdirectories should go to the amd-gfx list instead, and possibly also have a different subject prefix. But maybe this is a good starting point anyway.
Fully agreed. For now it's ~ reasonable, but we might want something better for the future.
Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel