Commit graph

57 commits

Author SHA1 Message Date
Akinori MUSHA
4c28e66686 Merge from knu-cvsweb 1.104.1.39.
2000-11-05 00:32  knu

	* cvsweb.cgi: Silence `Use of uninitialized value' warnings.

2000-11-03 02:36  knu

	* README.knu: Mention cat.1 is hyperlinked as well as cat(1).

2000-11-03 02:34  knu

	* cvsweb.cgi: MFZ: 1.104:

	2000-11-02 07:05  hnordstrom

		* cvsweb.cgi: Allow for 0.X versions. CVS accepts such
		version numbers in import -b even if not strictly legal...

2000-11-03 02:33  knu

	* cvsweb.conf: Set the default diff type to unidiff for all
	browsers, not only text-based ones.
2000-11-04 19:23:25 +00:00
Akinori MUSHA
77b9acfdc4 Merge from knu-cvsweb 1.103.1.37.
2000-10-21 00:46  knu

	* cvsweb.cgi: Always give options to click on a non-colored diff
	_and_ a colored diff.

	Requested by:	SO many people :>

2000-10-20 22:59  knu

	* TODO.knu: Hyperlinking was properly fixed.

2000-10-20 21:28  knu

	* TODO.knu, cvsweb.cgi: Fix htmllify so that <A href="...">...</A>
	won't nest. :)

	Do not show additional "(colored)" diff links when long colored
	diff is the default.

	Reduce the use of `.' operator that is known to be expensive.  Fix
	indent, clean up.

2000-10-11 06:14  knu

	* cvsweb.cgi: Introduce a new function: htmlquote().

	Clean up hyperlink tags.
	    - Use &link() instead of <a	href="...">...</a>.
	    - Do urlencode() or htmlquote() as appropriate.

2000-10-11 03:48  knu

	* cvsweb.cgi:
	  - Recognize "links" as another text mode browser.
	  - Fix the revision links in the annotation view of a file.

	Submitted by:	Christian Weisgerber <naddy@mips.inka.de>
2000-10-20 16:00:29 +00:00
Akinori MUSHA
ca00c6412c Merge from knu-cvsweb 1.103.1.33.
2000-10-07 16:44  knu

	* cvsweb.cgi: Fix &link() not to put a redundant trailing LF.

	Improve manpage linking to support "foo.1" as well as "foo(1)".

2000-10-07 16:35  knu

	* cvsweb.cgi: Fix screwups in the last commit.

	Parse rlog's output explicitly.  Recognize 77 ='s as a file
	separator, and 28 -'s as revision separator.

	Submitted by:	Makoto MATSUSHITA <matusita@jp.FreeBSD.org>

2000-10-03 04:07  knu

	* cvsweb.cgi: Cleanup $barequery generation.  Undefine "my"
	variables when they are done.
2000-10-07 07:57:33 +00:00
Akinori MUSHA
01d258dd09 Merge from knu-cvsweb 1.103.1.30.
2000-10-01 05:10  knu

	* cvsweb.cgi: Fix annotation bugs.
	  - Do not pass gzip'ed directives to cvs. (it never worked, sigh)
	  - Fix mis-spacing.  Now it should look pretty well.
2000-09-30 20:21:04 +00:00
Akinori MUSHA
a15211c2a5 Merge from knu-cvsweb 1.103.1.29.
2000-10-01 03:48  knu

	* INSTALL, cvsweb.cgi: Specify -R (Read-only mode) and -l (Do not
	log in history) flags when doing a cvs annotation so that one does
	not need to turn on the write permission on CVSROOT/history for the
	user which httpd runs cvsweb.cgi as. (typically "nobody")

2000-10-01 03:27  knu

	* cvsweb.cgi: Fix the comment to make how to set $config clear.

	Inspired by:	"Dan Langille" <dan@langille.org>

2000-09-29 03:06  knu

	* cvsweb.cgi: Trap errors in the configuration files on loading and
	show error messages.  (Previously it failed silently)

	Submitted by:	Sean Scarff <sean@pavilion.net>
2000-09-30 18:57:41 +00:00
Akinori MUSHA
e26451d78d Add the Portuguese server back to the mirror list, which was
mistakenly lost when I upgraded cvsweb.

Noticed by:	Joao Pedras <jpedras@webvolution.net>

Merge from knu-cvsweb 1.103.1.26.

2000-09-22 20:13  knu

	* cvsweb.cgi, cvsweb.conf: Remove $backcolor and introduce
	$body_tag_for_src to allow to set the foreground color.

	Noticed by:	dcs@FreeBSD.org

2000-09-22 00:30  knu

	* cvsweb.cgi: MFZ: 1.103.
2000-09-23 20:37:58 +00:00
Akinori MUSHA
89147eaeac Merge from knu-cvsweb 1.101.1.24.
2000-09-20 05:07  knu

	* cvsweb.cgi: Follow tab-width/tabstop/ts directives when expanding
	tabs into spaces.  Currently, only first 10 lines are scanned for
	the directives.

2000-09-20 04:57  knu

	* cvsweb.cgi: MFZ: 1.101.
	    - Fix a few bugs under mod_perl.
	    - Use the Compress::Zlib module if available.
	    - Embed PDF files inside the cvs markup view.

2000-09-20 03:35  knu

        * cvsweb.cgi: s/ts/tabstop/ that I forgot to substitute in the last
        update.

2000-09-12 02:11  knu

        * cvsweb.cgi: Allow one to set the default diff type.

        Inspired by:    Makoto MATSUSHITA <matusita@jp.FreeBSD.org>

2000-09-10 20:54  knu

        * cvsweb.cgi: Clean up spacedHtmlText().
2000-09-19 20:20:06 +00:00
Akinori MUSHA
48f5a91e42 Merge from knu-cvsweb 1.94.1.19.
2000-09-05 00:53  knu

	* cvsweb.cgi: Get the revision numbers in annotation available as
	hyperlinks.

	Requested by:	Josef Karthauser <joe@pavilion.net>

2000-09-04 23:50  knu

	* cvsweb.cgi: Fix previously introduced incorrect fix.
	s/\s+\n$//; --> s/\s+$/\n/;

	FreeBSD PR:	misc/20989
	Submitted by:	Tony Finch <dot@dotat.at>
2000-09-04 16:05:40 +00:00
Akinori MUSHA
24f331a226 Merge from knu-cvsweb 1.94.1.17.
2000-09-04 03:25  knu

	* README.knu, cvsweb.cgi, cvsweb.conf: Introduce manpage
	hyperlinking.

2000-09-04 02:33  knu

	* cvsweb.cgi: Get all mail URLs and addresses as hyperlinks, not
	just the first one.  (s/// --> s///g)
2000-09-03 18:45:10 +00:00
Akinori MUSHA
0d12a1fb75 Merge from knu-cvsweb 1.94.1.15.
2000-08-25 18:01  knu

	* cvsweb.cgi: Get side-by-side diff working when $showfunc is true,
	noting that `-p' option of diff(1) can only be used with context
	and unified diffs.

	Submitted by:	Roger Hardiman <roger@cs.strath.ac.uk>

	Allow to specify CVS tags or branch names (including `.' and
	`HEAD') on cvs checkout.

	e.g.    http://foo/cvsweb.cgi/bar/dood.c?rev=.
	http://foo/cvsweb.cgi/bar/dood.c?rev=RELENG_4
	http://foo/cvsweb.cgi/bar/dood.c?rev=RELENG_4_1_0_RELEASE

	Not for diff currently, as rcsdiff does not grok CVS tags.

	Inspired by:	Folks at the FreeBSD cvs-all list.

	Specify `-R' (turn on read-only repository mode) and `-l' (do not
	log in the command history) on cvs checkout, so that one does not
	need a write permission with the repository.

2000-08-25 00:53  knu

	* cvsweb.cgi: MFZ 1.94.	(Fix a typo in JavaScript code)
2000-08-25 09:21:00 +00:00
Akinori MUSHA
9f073d3c62 Merge conflicts.
Declare function prototypes to shut up run-time warnings.
Whitespace cleanup.
2000-08-15 08:47:40 +00:00
Akinori MUSHA
ee63a4ae51 Resolve conflicts.
Add $FreeBSD$ tags.

Configure cvsweb.conf and add some extra confs for freefall.
2000-08-14 04:55:19 +00:00
Akinori MUSHA
73e3135673 Fix it so perl4 can grok.
I had carelessly used Perl5 specific syntax everywhere in my previous
changes as I wasn't aware that there were those mirror sites that
still use perl4.

Pointed out by:	wosch
2000-07-18 18:27:14 +00:00
Akinori MUSHA
ddfafe77ac Fix a security hole: Do not pass the input from a user to the shell
without checking!

Approved by:	kris (as a security officer)
2000-07-13 09:01:10 +00:00
John Polstra
3d5a60681e s/Russian/Russia/ to be consistent with the way the other mirrors are listed. 2000-07-12 05:25:50 +00:00
John Polstra
b85d64b4ad Add Portugese mirror. 2000-07-12 05:23:33 +00:00
Tim Vanderhoek
e1ed6f3799 Modify the PR-matching regexp to know about the new sparc, advocacy,
and alpha categories.
2000-05-22 08:52:43 +00:00
Alexey Zelkin
7a0331e1d5 Add information about Russian version of FreeBSD's cvsweb.cgi. 2000-04-19 17:07:09 +00:00
Wolfram Schneider
c73351592d cuerrnt FreeBSD version' of cvsweb.cgi is pointed to old one
PR:	 docs/16814
Submitted by: haro@tk.kubota.co.jp
2000-02-19 13:58:12 +00:00
Wolfram Schneider
e892fe3c4d Off by one error.
Submitted by:	Christian Weisgerber <naddy@unix-ag.uni-kl.de>
2000-02-01 14:52:38 +00:00
Alexey Zelkin
39224ae67a freebsd.org -> FreeBSD.org 2000-01-05 15:47:46 +00:00
Wolfram Schneider
77b8b76970 Undo revision revision 1.34: Set up for FreeBSD repo options ($FreeBSD$)
in /usr/local/etc/cvsweb-freebsd. The repo options are only valid for
the FreeBSD CVS tree.

BTW, the cvsweb.cgi mirror sites should update their
/usr/local/etc/cvsweb-freebsd too if possible.

Submitted by: peter
1999-09-19 10:55:19 +00:00
Wolfram Schneider
8044939abb Undo revision 1.31. The FreeBSD Web server www.freebsd.org support
more than one CVS tree and FreeBSD.org E-mail hyperlinks will not work
for the other trees (e.g. NetBSD, learn etc.).

Pointed out by: Wolfgang Solfrank <ws@tools.de>
1999-09-17 18:56:44 +00:00
Peter Wemm
c82d2e0e66 Take a shot at getting $FreeBSD$ expanded by cvsweb. 1999-09-08 13:04:09 +00:00
Peter Wemm
01a61279be $Id$,$Date$ -> $FreeBSD$
The jury is out on $Date$, but it's presently not being expanded..
1999-09-06 07:03:31 +00:00
Wolfram Schneider
2857b98ed4 Use absolute URL for query-pr.cgi CGI script so the link
will works  for the cvsweb.cgi mirrors.

PR:		 misc/12813
1999-07-26 21:41:06 +00:00
Bill Fumerola
5da6fa1886 Add an e-mail hyperlink for the author of each commit.
Approved By:	fenner
1999-06-01 15:23:51 +00:00
Wolfram Schneider
ec37a00fe2 Added spanish mirror and the main script in California. 1999-04-17 16:57:56 +00:00
Bill Fenner
b34092da33 Allow "rev=." to check out HEAD 1999-01-13 03:59:04 +00:00
Tim Vanderhoek
900fd1e326 Correct more aggressive PR# matching (aka. an "I can write better
regexp's than that....really" commit).
1999-01-01 02:42:36 +00:00
Tim Vanderhoek
1655b7abb9 More aggressive PR-number url'ifying. Grammar gnit. 1998-12-30 19:31:43 +00:00
Motoyuki Konno
d77b8e56b6 Change URL of CVSweb Japanese mirror.
http://www.jp.freebsd.org/www.freebsd.org/cgi/cvsweb.cgi
    -> http://www.jp.freebsd.org/cgi/cvsweb.cgi

Requested by: root@www.jp.freebsd.org
1998-11-10 19:26:16 +00:00
Wolfram Schneider
7f78c722d2 Delete dead mozilla cvs tree. 1998-08-24 16:41:42 +00:00
Wolfram Schneider
ad20be4d1f Added cvsweb mirrors. 1998-08-16 13:45:12 +00:00
Wolfram Schneider
d49cfdcd87 Sort CVS trees by (internal) name. 1998-08-15 09:59:11 +00:00
Wolfram Schneider
0d88a0eb49 Always print the name of the current CVS tree. 1998-08-13 10:35:26 +00:00
Wolfram Schneider
ee0af6538a Insert BSD copyright. 1998-07-23 09:42:40 +00:00
Wolfram Schneider
0361431614 Delete OpenBSD tree from the cgi script and move the OpenBSD
configuration to the extern config file /usr/local/etc/cvsweb.
OpenBSD is not a standard part of FreeBSD ;-) and I doubt that
FreeBSD mirror site will support OpenBSD.
1998-07-23 08:50:52 +00:00
Wolfram Schneider
03bf378f04 Ignore CVS lock and stale NFS files. 1998-05-17 15:41:28 +00:00
Wolfram Schneider
f4f04f8908 Don't print the directory '#cvs.lock'. 1998-05-08 10:14:10 +00:00
Wolfram Schneider
f879843780 Add link to the FreeBSD-current sources of the cvsweb.cgi
script (self-referencing url ;-)
1998-05-05 16:05:32 +00:00
Wolfram Schneider
bed7cba672 Print a list of available CVS trees on the home page.
Print the name of the current CVS tree on every page if
not identical with the default CVS tree.
1998-04-06 15:50:27 +00:00
Wolfram Schneider
2321e3b34f Support mozilla cvs tree.
http://www.freebsd.org/cgi/cvsweb.cgi?cvsroot=mozilla
1998-04-05 10:20:37 +00:00
Wolfram Schneider
9d5e50905a Append timezone "UTC" to the date output. RCS display all times
in Coordinated  Universal  Time (UTC) by default.
1998-01-12 16:27:14 +00:00
Bill Fenner
816413359b Fix module name parsing (e.g. cvsweb.cgi/sys_netinet works again) 1997-11-19 19:20:22 +00:00
Bill Fenner
4d77a0857c Make dolog a function, to clean up the body of the "big switch".
Make the "$CVSROOT missing" message seem like a temporary error, to
 reduce email to webmaster when freefall is down.
Only display Attic button when there's an Attic present
Consolidate style of &cvsroot additions
1997-11-19 19:07:18 +00:00
Wolfram Schneider
82ceb2d953 Source the config file /usr/local/etc/cvsweb and
/usr/local/etc/cvsweb-$cvsroot if exists. The config files
are perl scripts.

This make it possible to define local cvs roots, help messages,
navigation bar and E-Mail addresses without changing the
original cvsweb.cgi script.
1997-11-15 16:48:07 +00:00
Wolfram Schneider
c97e6997ab Add support for multiple cvs root directories. This allow
to use one script for different cvs trees, e.g.

learn:
cvsweb.cgi?cvsroot=learn

freebsd:
cvsweb.cgi?cvsroot=freebsd

openbsd:
cvsweb.cgi/src/bin/cat/cat.c?cvsroot=openbsd

The default cvs root is `freebsd'.
1997-11-14 17:36:47 +00:00
Bill Fenner
2437b7a96d Hide Attic directories by default; show files that are in the Attic in their
old location with an "(in the Attic)" notation.
Make queries sticky so that only_on_branch &c can live across directory
 traversals.
Learn about file death.
1997-07-19 00:54:40 +00:00
Bill Fenner
519481482d Teach cvsweb about the "branch:" RCS header
Print out information about branch points as well as branches.
Don't use user input in regexp's (e.g. turned /^${module}\s+(\S+)/o
    into /^(\S+)\s+(\S+)/o && $module eq $1) to avoid "foo.c++"
    regex error
Add to safeglob() a little (although it's still not used yet)
1997-07-01 22:19:57 +00:00