]> git.ipfire.org Git - thirdparty/gcc.git/commit
contrib: Check and if needed set user.name and user.email in gcc-git-customization.sh
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 16 Jan 2020 13:48:37 +0000 (13:48 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Thu, 16 Jan 2020 13:48:37 +0000 (13:48 +0000)
commit545f5fad17ff0decb2a145d2ea513580630858c3
tree7fc6db66b3f410332a5f71dd91ccc9c7c3941fb7
parent1c2755a6a6bfff1402520448aae2a4cd4c6085f9
contrib: Check and if needed set user.name and user.email in gcc-git-customization.sh

As discussed on IRC, this adds a couple more checks in the
customization setup for git.  If the variables user.name and
user.email are not set anywhere in the git config hierarchy, we set
some local values.  We always ask about the values we detect and if
the user gives an answer that is new, we save that in the local
config: this gives the opportunity to use different values to those
configured for the global space.

Also cleaned up a couple of minor niggles, such as using $(cmd) rather
than `cmd` for subshells and some quoting issues when using eval.

* gcc-git-customization.sh: Check that user.name and user.email
are set.  Use $(cmd) instead of `cmd`.  Fix variable quoting when
using eval.
contrib/ChangeLog
contrib/gcc-git-customization.sh