From 3a67490b10ca38d7d3d30c6917d75ce0e093706b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Dec 2010 01:58:32 +0000 Subject: rdoc: enable webcvs feature for cgit links Hopefully this gets more people reading our source. --- GNUmakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 11455f9..03ed4ac 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -2,6 +2,7 @@ all:: test GIT_URL = git://git.bogomips.org/unicorn.git +CGIT_URL = http://git.bogomips.org/cgit/unicorn.git RLFLAGS = -G2 MRI = ruby @@ -187,7 +188,7 @@ ChangeLog: GIT-VERSION-FILE mv $@+ $@ news_atom := http://unicorn.bogomips.org/NEWS.atom.xml -cgit_atom := http://git.bogomips.org/cgit/unicorn.git/atom/?h=master +cgit_atom := $(CGIT_URL)/atom/?h=master atom = @@ -195,7 +196,8 @@ atom = $$i; done find bin lib -type f -name '*.rbc' -exec rm -f '{}' ';' - 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/ $(MAKE) -C Documentation install-html install-man -- cgit v1.2.3-24-ge0c7