aboutsummaryrefslogtreecommitdiff
path: root/gitweb/INSTALL
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2010-05-01 22:36:15 +0200
committerJunio C Hamano <gitster@pobox.com>2010-05-01 15:42:19 -0700
commit152d94348f6a38eb7cb5f4af8397f51ba06ddffb (patch)
treee354dc63b04558c944bfef523fd6874497a9881f /gitweb/INSTALL
parent8515392f5d4c5a36a0f9e4a73068f7106d7f4638 (diff)
downloadgit-152d94348f6a38eb7cb5f4af8397f51ba06ddffb.tar.gz
git-152d94348f6a38eb7cb5f4af8397f51ba06ddffb.tar.xz
gitweb: Create install target for gitweb in Makefile
Installing gitweb is now as easy as # make gitwebdir=/var/www/cgi-bin gitweb-install ;# as root The gitweb/INSTALL file was updated accordingly, to make use of this new target. Fix shell quoting, i.e. setting bindir_SQ etc., in gitweb/Makefile. Those variables were not used previously. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/INSTALL')
-rw-r--r--gitweb/INSTALL11
1 files changed, 4 insertions, 7 deletions
diff --git a/gitweb/INSTALL b/gitweb/INSTALL
index 208e4a8f0..d484d76b7 100644
--- a/gitweb/INSTALL
+++ b/gitweb/INSTALL
@@ -6,10 +6,8 @@ First you have to generate gitweb.cgi from gitweb.perl using
gitweb.css, git-logo.png and git-favicon.png) to their destination.
For example if git was (or is) installed with /usr prefix, you can do
- $ make prefix=/usr gitweb ;# as yourself
- # cp gitweb/*.cgi gitweb/*.css \
- gitweb/*.js gitweb/*.png \
- /var/www/cgi-bin/ ;# as root
+ $ make prefix=/usr gitweb ;# as yourself
+ # make gitwebdir=/var/www/cgi-bin install-gitweb ;# as root
Alternatively you can use autoconf generated ./configure script to
set up path to git binaries (via config.mak.autogen), so you can write
@@ -18,9 +16,8 @@ instead
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make gitweb ;# as yourself
- # cp gitweb/*.cgi gitweb/*.css \
- gitweb/*.js gitweb/*.png \
- /var/www/cgi-bin/ ;# as root
+ # make gitwebdir=/var/www/cgi-bin \
+ install-gitweb ;# as root
The above example assumes that your web server is configured to run
[executable] files in /var/www/cgi-bin/ as server scripts (as CGI