File: 03_install.dpatch

package info (click to toggle)
extlib 1.5-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 424 kB
  • ctags: 972
  • sloc: ml: 7,041; makefile: 39; sh: 34
file content (41 lines) | stat: -rw-r--r-- 1,614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_install.dpatch by Stefano Zacchiroli <zack@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad trunk~/Makefile trunk/Makefile
--- trunk~/Makefile	2006-02-20 12:32:37.000000000 -0500
+++ trunk/Makefile	2006-02-20 12:32:37.000000000 -0500
@@ -17,7 +17,7 @@
 	ocamlc -c $(MODULES:=.mli)
 	mkdir -p doc/
 	ocamldoc -sort -html -d doc/ $(MODULES:=.mli)
-	cp odoc_style.css doc/style.css
+#          cp odoc_style.css doc/style.css
 
 install:
 	cp META.txt META
diff -urNad trunk~/install.ml trunk/install.ml
--- trunk~/install.ml	2006-02-20 12:32:37.000000000 -0500
+++ trunk/install.ml	2006-02-20 12:32:58.000000000 -0500
@@ -171,12 +171,12 @@
 		List.iter (fun m -> remove (m ^ obj_ext)) modules;
 		remove ("extLib" ^ obj_ext);
 	end;
-	if !autodoc then begin
-		run (sprintf "ocamldoc -sort -html -d %s %s" doc_dir (m_list ".mli"));
-		run ((match path_type with
-				| PathDos -> sprintf "%s odoc_style.css %s\\style.css";
-				| PathUnix -> sprintf "%s odoc_style.css %s/style.css") cp_cmd doc_dir);
-	end;
+        if !autodoc then begin
+                run (sprintf "ocamldoc -sort -html -d %s %s" doc_dir (m_list ".mli"));
+(*                 run ((match path_type with
+                                | PathDos -> sprintf "%s odoc_style.css %s\\style.css";
+                                | PathUnix -> sprintf "%s odoc_style.css %s/style.css") cp_cmd doc_dir); *)
+        end;
 	match install_dir with
 	  Findlib ->
 	    let files = Buffer.create 0 in