diff options
author | Josh Triplett <josh@freedesktop.org> | 2007-04-24 00:51:35 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-24 01:12:36 -0700 |
commit | b51b8bbf146d17556226bff14f97957e84aa0207 (patch) | |
tree | 84eec03dfde97b66ee7495380e16ddb1179fbb7d /git-relink.perl | |
parent | Documentation/git-reset.txt: suggest git commit --amend in example. (diff) | |
download | tgif-b51b8bbf146d17556226bff14f97957e84aa0207.tar.xz |
Create a sysconfdir variable, and use it for ETC_GITCONFIG
ETC_GITCONFIG defaults to $(prefix)/etc/gitconfig, so if you just set
prefix=/usr, you end up with a git that looks in /usr/etc/gitconfig, rather
than /etc/gitconfig as specified by the FHS. Furthermore, setting
ETC_GITCONFIG does not fix the paths to any future system-wide configuration
files.
Factor out the path to the system-wide configuration directory into a variable
sysconfdir, normally set to $(prefix)/etc, but set to /etc when prefix=/usr .
This fixes the prefix=/usr problem for ETC_GITCONFIG, and allows centralized
configuration of any future system-wide configuration files without requiring
further action from package maintainers or other people building and
installing git.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-relink.perl')
0 files changed, 0 insertions, 0 deletions