Don't hardcode urls when SCRIPT_NAME is available

Also, let the makefile define the name of the installed cgi and
use that definition as a default value for cgit_script_name variable.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli 2007-05-15 00:48:31 +02:00
parent 6fb7d09fea
commit ea2831f1c8
5 changed files with 9 additions and 4 deletions

1
cgit.h
View file

@ -75,6 +75,7 @@ extern char *cgit_logo;
extern char *cgit_logo_link;
extern char *cgit_module_link;
extern char *cgit_virtual_root;
extern char *cgit_script_name;
extern char *cgit_cache_root;
extern int cgit_nocache;