From: Jakub Narebski <jnareb@gmail.com>
To: Mark Rada <marada@uwaterloo.ca>
Cc: git@vger.kernel.org
Subject: [PATCHv2] gitweb: Improve installation instructions in gitweb/INSTALL
Date: Tue, 27 Apr 2010 22:47:24 +0200 [thread overview]
Message-ID: <201004272247.27566.jnareb@gmail.com> (raw)
In-Reply-To: <4BD74BAB.1040401@mailservices.uwaterloo.ca>
Dnia wtorek 27. kwietnia 2010 22:40, Mark Rada napisał:
> On 10-04-27 4:33 PM, Jakub Narebski wrote:
> > + The above instruction assumes that you didn't use JavaScript
> > + minimizer or CSS minimizer. If you use minimizers you need
> > + to modify above instructions accordingly, which means pointing
> > + GITWEB_CSS and GITWEB_JS to minified versions, and copying
> > + minified files.
> > +
> >
>
> Hmm, I believe I already put a message like this in the INSTALL
> file. Perhaps that message should be updated, too, or removed in
> place of your patch.
>
> Looks like:
> 67
> 68 - You can optionally generate minified versions of gitweb.js and gitweb.css
> 69 by defining the JSMIN and CSSMIN build configuration variables. By default
> 70 the non-minified versions will be used. NOTE: if you enable this option,
> 71 substitute gitweb.min.js and gitweb.min.css for all uses of gitweb.js and
> 72 gitweb.css in the help files.
How about this then:
-- >8 --
From: Jakub Narebski <jnareb@gmail.com>
Date: Tue, 27 Apr 2010 22:45:19 +0200
Subject: [PATCHv2] gitweb: Improve installation instructions in gitweb/INSTALL
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
gitweb/INSTALL | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/gitweb/INSTALL b/gitweb/INSTALL
index cbdc136..1bfd9aa 100644
--- a/gitweb/INSTALL
+++ b/gitweb/INSTALL
@@ -7,7 +7,9 @@ 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/git* /var/www/cgi-bin/ ;# as root
+ # cp gitweb/*.cgi gitweb/*.css \
+ gitweb/*.js gitweb/*.png \
+ /var/www/cgi-bin/ ;# 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
@@ -16,7 +18,9 @@ instead
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make gitweb ;# as yourself
- # cp gitweb/git* /var/www/cgi-bin/ ;# as root
+ # cp gitweb/*.cgi gitweb/*.css \
+ gitweb/*.js gitweb/*.png \
+ /var/www/cgi-bin/ ;# 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
@@ -74,9 +78,10 @@ file for gitweb (in gitweb/README).
Build example
~~~~~~~~~~~~~
-- To install gitweb to /var/www/cgi-bin/gitweb/ when git wrapper
- is installed at /usr/local/bin/git and the repositories (projects)
- we want to display are under /home/local/scm, you can do
+- To install gitweb to /var/www/cgi-bin/gitweb/, when git wrapper
+ is installed at /usr/local/bin/git, the repositories (projects)
+ we want to display are under /home/local/scm, and you do not use
+ minifiers, you can do
make GITWEB_PROJECTROOT="/home/local/scm" \
GITWEB_JS="/gitweb/gitweb.js" \
@@ -86,8 +91,8 @@ Build example
bindir=/usr/local/bin \
gitweb
- cp -fv ~/git/gitweb/gitweb.{cgi,js,css} \
- ~/git/gitweb/git-{favicon,logo}.png \
+ cp -fv gitweb/gitweb.{cgi,js,css} \
+ gitweb/git-{favicon,logo}.png \
/var/www/cgi-bin/gitweb/
--
1.7.0.1
next prev parent reply other threads:[~2010-04-27 20:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-27 20:33 [PATCH] gitweb: Improve installation instructions in gitweb/INSTALL Jakub Narebski
2010-04-27 20:40 ` Mark Rada
2010-04-27 20:47 ` Jakub Narebski [this message]
2010-04-27 22:27 ` [PATCHv2] " Mark Rada
2010-04-27 20:40 ` [PATCH (amend)] " Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201004272247.27566.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=marada@uwaterloo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.