Permalink
Browse files

This commit was manufactured by cvs2svn to create branch 'R-exp-pd'.

git-svn-id: https://svn.r-project.org/R/branches/R-exp-pd@6386 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
(no author)
(no author) committed Nov 8, 1999
1 parent 22b18c2 commit aec019bf31cd9165178c243550394f1fce7c6853
Showing 661 changed files with 139,399 additions and 0 deletions.
View
@@ -0,0 +1,79 @@
+# default target builds indices
+DOS= # -dosnames # for file-name mapping
+PERL=perl
+CAT=cat
+CP=cp
+RM=rm
+
+indices:
+ $(PERL) build.help ${DOS} -htmllists
+
+help-%:
+ $(PERL) build.help ${DOS} -nroff -html -example -latex $*
+
+chm-%:
+ $(PERL) build.help ${DOS} -chm $*
+# hhc always gives an error code
+ $(MAKE) -C ../../library/$*/chm -f ../../../gnuwin32/help/Makefile $*.chm
+ mkdir -p ../../../library/$*/chtml
+ cp ../../library/$*/chm/$*.chm ../../../library/$*/chtml
+
+winhlp-%: chm-%
+ $(MAKE) -C ../../library/$*/chm -f ../../../gnuwin32/help/Makefile $*.hlp
+ mkdir -p ../../../library/$*/winhlp
+ cp ../../library/$*/chm/$*.cnt ../../library/$*/chm/$*.hlp ../../../library/$*/winhlp
+
+contents-%:
+ $(PERL) Rd2contents ../../library/$* ../../../library/$*/CONTENTS
+ $(CAT) ../../../library/*/CONTENTS > ../../../doc/html/search/index.txt
+
+pkg-%:
+ $(PERL) build.help ${DOS} -nroff -html -example -latex ../../library/$*
+
+ziphelp-%:
+ $(MAKE) -C ../../../library/$* -f ../../src/gnuwin32/help/Makefile ZIPFLAGS=jqX PKG=$* zipit
+
+ziponlyhelp-%:
+ $(MAKE) -C ../../../library/$* -f ../../src/gnuwin32/help/Makefile ZIPFLAGS=jqmX PKG=$* zipit
+
+
+winhelp-%:
+ $(MAKE) -C ../../library/$* -f ../../gnuwin32/help/Makefile PKG=$* win
+
+clean:
+ $(RM) -fr *~ *.o *.obj *.dll *.def *.a
+
+# to be run from src/library/pkg/chm
+
+HTM = $(filter-out 00Index.html, $(wildcard *.html))
+%.chm: $(HTM) logo.jpg
+ -hhc $*.hhp
+
+%.hlp: %.rtf logo.bmp
+ hcrtf /x $*.hpj
+
+%.rtf: $(HTM)
+ perl ../../../gnuwin32/help/html-to-rtf.pl $*.hhp
+
+logo.jpg: ../../../../doc/html/logo.jpg
+ $(CP) $^ $@
+
+logo.bmp: ../../../gnuwin32/help/logo.bmp
+ $(CP) $^ $@
+
+# following are designed to be run from the library/pkg directory:
+
+zipit: help/Rhelp.zip
+
+help/Rhelp.zip: ../../src/library/$(PKG)/man/*.Rd \
+../../src/library/$(PKG)/man/windows/*.Rd
+ -$(MAKE) -C help -f ../../../src/gnuwin32/help/Makefile uz-Rhelp
+ -$(MAKE) -C R-ex -f ../../../src/gnuwin32/help/Makefile uz-Rex
+ -$(MAKE) -C latex -f ../../../src/gnuwin32/help/Makefile uz-Rhelp
+ -$(MAKE) -C ../../src/gnuwin32/help help-$(PKG)
+ zip -${ZIPFLAGS} help/Rhelp help/* -x help/00Titles help/AnIndex
+ zip -${ZIPFLAGS} R-ex/Rex R-ex/*.R
+ zip -${ZIPFLAGS} latex/Rhelp latex/*.tex
+
+uz-%:
+ unzip -qou $*
View
@@ -0,0 +1,17 @@
+include ../MkRules
+
+Rchtml-CFLAGS= -I $(HHWDIR)/include
+Rchtml-DLLFLAGS= -s
+Rchtml-DLLLIBS= -L. -lhhctrl
+
+all: libhhctrl.a ../../../bin/Rchtml.dll
+
+libhhctrl.a : MkChmDll
+ $(ECHO) EXPORTS > hhctrl.def
+ $(ECHO) HtmlHelpA@16 >> hhctrl.def
+ $(DLLTOOL) --dllname hhctrl.ocx --def hhctrl.def --output-lib libhhctrl.a
+
+../../../bin/Rchtml.dll: Rchtml.dll
+ $(CP) $^ $@
+
+Rchtml.dll : Rchtml.o
View
@@ -0,0 +1,91 @@
+R
+a
+about
+after
+against
+all
+also
+although
+among
+an
+and
+are
+as
+at
+be
+became
+because
+been
+between
+but
+by
+can
+come
+do
+during
+each
+early
+for
+form
+found
+from
+had
+has
+have
+he
+her
+his
+however
+in
+include
+including
+into
+is
+it
+its
+late
+later
+me
+med
+made
+many
+may
+more
+most
+near
+no
+non
+not
+of
+on
+only
+or
+other
+over
+several
+she
+some
+such
+than
+that
+the
+their
+then
+there
+these
+they
+this
+through
+to
+under
+until
+use
+was
+we
+were
+when
+where
+which
+who
+with
+you
View
@@ -0,0 +1,25 @@
+/*
+Can be built with VC++6 by
+cl /MT /Ox /c Rchtml.c
+link /dll /out:Rchtml.dll Rchtml.obj user32.lib htmlhelp.lib advapi32.lib
+*/
+
+#include <windows.h>
+#include <htmlhelp.h>
+
+static char htmlref[256];
+
+__declspec(dllexport) void Rchtml(char **file, char **ptopic, int *error)
+{
+ char *topic =*ptopic;
+ HWND rc;
+
+ strcpy(htmlref, *file);
+ if(topic && strlen(topic)) {
+ strcat(htmlref, "::/");
+ strcat(htmlref, topic);
+ strcat(htmlref, ".html");
+ }
+ rc = HtmlHelp(GetDesktopWindow(), htmlref, HH_DISPLAY_TOPIC, 0);
+ *error = (rc == (HWND)NULL);
+}
Oops, something went wrong.

0 comments on commit aec019b

Please sign in to comment.