Redo the templates generation and installation.

Per discussion with people interested in binary packaging,
change the default template location from /etc/git-core to
/usr/share/git-core hierarchy.  If a user wants to run git
before installing for whatever reason, in addition to adding
$src to the PATH environment variable, git-init-db can be run
with --template=$src/templates/blt/ parameter.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2005-08-06 12:50:14 -07:00
parent f5b7495609
commit d3af621b14
7 changed files with 77 additions and 34 deletions

View File

@ -128,10 +128,6 @@ extern unsigned int active_nr, active_alloc, active_cache_changed;
#define DB_ENVIRONMENT "GIT_OBJECT_DIRECTORY"
#define INDEX_ENVIRONMENT "GIT_INDEX_FILE"
#define GRAFT_ENVIRONMENT "GIT_GRAFT_FILE"
#define TEMPLATE_DIR_ENVIRONMENT "GIT_TEMPLATE_DIRECTORY"
#ifndef DEFAULT_GIT_TEMPLATE_ENVIRONMENT
#define DEFAULT_GIT_TEMPLATE_ENVIRONMENT "/etc/git-core/templates"
#endif
extern char *get_object_directory(void);
extern char *get_refs_directory(void);