summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2002-07-04 10:23:16 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2002-07-04 10:23:16 +0000
commit4b40faa1aea4629104b9faf3fcf266dafdb09823 (patch)
tree7f773f3a1728c9ab08ada77e7ab10ac3d7ba2c41 /otherlibs/labltk
parent20d67a955f058eaa264f7c2322b0f9c5c7bb1c81 (diff)
process help.txt
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4978 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk')
-rw-r--r--otherlibs/labltk/browser/Makefile8
-rw-r--r--otherlibs/labltk/browser/Makefile.nt5
2 files changed, 9 insertions, 4 deletions
diff --git a/otherlibs/labltk/browser/Makefile b/otherlibs/labltk/browser/Makefile
index 723b7fb47..838ea57b9 100644
--- a/otherlibs/labltk/browser/Makefile
+++ b/otherlibs/labltk/browser/Makefile
@@ -37,10 +37,10 @@ ocamlbrowser$(EXE): $(TOPDIR)/toplevel/toplevellib.cma jglib.cma $(OBJ) \
jglib.cma: $(JG)
$(CAMLCOMP) -a -o jglib.cma $(JG)
-#help.ml: help.txt
-# printf 'let text = "' > $@
-# cat help.txt >> $@
-# printf '";;\n' >> $@
+help.ml:
+ echo 'let text = "\\' > $@
+ sed -e 's/^ /\\032/' -e 's/$$/\\n\\/' help.txt >> $@
+ echo '";;' >> $@
install:
if test -f ocamlbrowser$(EXE); then : ; \
diff --git a/otherlibs/labltk/browser/Makefile.nt b/otherlibs/labltk/browser/Makefile.nt
index a1ac36568..607972363 100644
--- a/otherlibs/labltk/browser/Makefile.nt
+++ b/otherlibs/labltk/browser/Makefile.nt
@@ -48,6 +48,11 @@ ocamlbrowser.exe: jglib.cma $(OBJS) winmain.$(O)
jglib.cma: $(JG)
$(CAMLCOMP) -a -o jglib.cma $(JG)
+help.ml:
+ echo 'let text = "\\' > $@
+ sed -e 's/^ /\\032/' -e 's/$$/\\n\\/' help.txt >> $@
+ echo '";;' >> $@
+
install:
if test -f ocamlbrowser.exe; then cp ocamlbrowser.exe $(BINDIR); fi