From 4e4166437ac88aa6df4ffcd4ed8452cb5eb8750e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 9 Dec 2010 22:30:08 +0000 Subject: rdoc: enable webcvs links for cgit Might as well enable it to help people browse code. --- GNUmakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 384e286..d8fe7c6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -4,6 +4,7 @@ RUBY = ruby RAKE = rake RSYNC = rsync GIT_URL = git://git.bogomips.org/ruby-tdb.git +CGIT_URL = http://git.bogomips.org/cgit/ruby-tdb.git GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE @./GIT-VERSION-GEN @@ -65,13 +66,14 @@ ChangeLog: GIT-VERSION-FILE mv $@+ $@ news_atom := http://bogomips.org/ruby-tdb/NEWS.atom.xml -cgit_atom := http://git.bogomips.org/cgit/ruby-tdb.git/atom/?h=master +cgit_atom := $(CGIT_URL)/atom/?h=master atom = # using rdoc 2.5.x doc: .document NEWS ChangeLog - rdoc -t "$(shell sed -ne '1s/^= //p' README)" + rdoc --webcvs=$(CGIT_URL)/tree/%s \ + -t "$(shell sed -ne '1s/^= //p' README)" install -m644 COPYING doc/COPYING install -m644 $(shell grep '^[A-Z]' .document) doc/ $(RUBY) -i -p -e \ -- cgit v1.2.3-24-ge0c7