Commits

Anonymous committed a0ddc4d

install and document

Comments (0)

Files changed (3)

 #!/bin/sh
 
-tar zxvf ocamlspot.tgz
+tar zxvf ../ocamlspot.tgz
 /bin/rm -rf boot 0MAKEDIFF* 0UPDATE*
 
 
 # mv ocaml/* ocaml/.[A-z]* .
 # rmdir ocaml
 
-tar zxvf ocaml-3.11.0.tar.gz
+tar zxvf ../ocaml-3.11.0.tar.gz
 mv ocaml-3.11.0/* ocaml-3.11.0/.[A-z]* .
 
 patch -p1 < ocamlspot.diff 
 
 ./configure
 make core coreboot
-make world opt opt.opt
-
+make world
+cp boot/myocamlbuild boot/myocamlbuild.boot
+make opt opt.opt
 
 `/bin/cp ocamlspot/INSTALL-ocamlspot.txt .`;
 
-`hg diff -r dcce7f620fb6 -r tip -X "0MAKEDIFF*" -X "0UPDATE*" -X "0INSTALL" -X ".hg[a-z]*" | ./0CLEANDIFF > ocamlspot.diff`;
+`hg diff -r c0ddf4b8e5c0 -r tip -X "0MAKEDIFF*" -X "0UPDATE*" -X "0INSTALL" -X ".hg[a-z]*" | ./0CLEANDIFF > ocamlspot.diff`;
 
 open(IN, "ocamlspot.diff");
 

ocamlspot/INSTALL-ocamlspot.txt

-1. Check-out a cvs version of ocaml compiler
-   
-1.1 Follow the login information at http://camlcvs.inria.fr/cvsserver-eng.html
+1. Download OCaml compiler version 3.11.0.
 
-1.2 Check-out
+  - Do no ask me where to find it.
+  - You can also use the CVS version
 
-  Check the repository:
+2. Extract the compiler source.
 
-    cvs -d :pserver:anoncvs@camlcvs.inria.fr:/caml co -r ocaml3110 ocaml
+  - tar zxvf ocaml-3.11.0.tar.gz
+  - cd ocaml3.11.0
 
-  Beware, it will overwrite your ocaml directory if you have.
+3. Apply the patch
 
-1.3 Fix a small bug
-  
-  The version of ocaml may have a small bug:
+  - patch -p1 < ocamlspot.diff
 
-    chmod +x ocaml/build/mixed-boot.sh
+4. Build a bytecode compiler
 
-2. Extract some files and apply the patch 
+  - ./configure
+  - make core coreboot
+  - make world
 
-  cd ocaml
-  patch -p1 < ocamlspot.diff
+5. Manual ocamlbuild bootstrap:
 
-3. Usual build procedure + bootstrap
-3.1 ./configure
-3.2 make core coreboot
-3.3
-3.4 make world
-3.5 make opt opt.opt ...
-3.6 make install (if you dare)
+   Do not forget the following:
+ 
+  - cp boot/myocamlbuild boot/myocamlbuild.boot
 
-4. set-up emacs
+6. Build a native code compiler
 
-  Make install does not install ocamlspot related files at this moment.
+  - make opt
+  - make opt.opt
+
+7. Install it
+
+  - make install
+
+8. Emacs interface
+
   Write the following into your .emacs:
 
   ; load path
   	     (local-set-key "\C-c\C-t" 'caml-types-show-type)
   	     (local-set-key "\C-c;" 'ocamlspot-query)))
 
-5. bug report
+9. How to use
+
+  Compiler your ML project by this patched compiler with -annot option 
+  to create .spot files. Open one of the source files in Emacs and place 
+  the cursor at the name whose definition is in question. Type C-c; will 
+  show you the defintion.
+
+10. bug report
 
   Please report bugs to jun.furuse at gmail.