equal
deleted
inserted
replaced
|
1 # In-house patch created to keep inappropriate full pathnames |
|
2 # on build systems from being included in the ri Ruby doc files. |
|
3 # Patch is Solaris specific and not appropriate for upstream use. |
|
4 |
|
5 --- ruby-1.9.3-p484-orig/common.mk 2012-12-20 02:10:05.000000000 -0800 |
|
6 +++ ruby-1.9.3-p484/common.mk 2014-04-18 16:53:10.198728000 -0700 |
|
7 @@ -402,9 +402,17 @@ |
|
8 post-install-doc:: |
|
9 @$(NULLCMD) |
|
10 |
|
11 +# Eliminate full pathname from source directory references |
|
12 +# in RDoc ri files. |
|
13 +# Create a symlink here to the source directory so |
|
14 +# rdoc can reference it from here without the full pathname |
|
15 +srcdir_base=$(notdir $(srcdir)) |
|
16 rdoc: PHONY main |
|
17 @echo Generating RDoc documentation |
|
18 - $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" $(RDOCFLAGS) "$(srcdir)" |
|
19 + if [ ! -e $(srcdir_base) ]; then \ |
|
20 + /usr/bin/ln -s $(srcdir); \ |
|
21 + fi |
|
22 + $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" $(RDOCFLAGS) "$(srcdir_base)" |
|
23 |
|
24 rdoc-coverage: PHONY main |
|
25 @echo Generating RDoc coverage report |