Make cgit honor CACHE_ROOT as defined in Makefile

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Chris Pickel 2007-09-08 11:39:44 +02:00 committed by Lars Hjemli
vanhempi 97ded7c1c3
commit 898f5f89d3
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa

Näytä tiedosto

@ -33,6 +33,7 @@ CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"' CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"'
cgit: cgit.c $(OBJECTS) cgit: cgit.c $(OBJECTS)

Näytä tiedosto

@ -23,7 +23,7 @@ char *cgit_module_link = "./?repo=%s&page=commit&id=%s";
char *cgit_agefile = "info/web/last-modified"; char *cgit_agefile = "info/web/last-modified";
char *cgit_virtual_root = NULL; char *cgit_virtual_root = NULL;
char *cgit_script_name = CGIT_SCRIPT_NAME; char *cgit_script_name = CGIT_SCRIPT_NAME;
char *cgit_cache_root = "/var/cache/cgit"; char *cgit_cache_root = CGIT_CACHE_ROOT;
char *cgit_repo_group = NULL; char *cgit_repo_group = NULL;
int cgit_nocache = 0; int cgit_nocache = 0;