summaryrefslogtreecommitdiff
path: root/devel/bisoncpp/files/patch-icmake-install
blob: 4f9ab11fe265cbd7e67f6b6efde3dba21f18b073 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
--- icmake/install.orig	2013-06-21 09:16:34 UTC
+++ icmake/install
@@ -3,7 +3,6 @@ string setWhere(string where, string def
     if (where == "")
         where = defaultWhere;
 
-    md(where);
     return where;
 }
 
@@ -13,22 +12,15 @@ void install(string what, string where)
 
     if (what == "program")
     {
-        if (where == "")
-            where = BINARY;
-
-        path = get_path(where);
-        if (path != "")
-            md(path);
-
+        where = setWhere(where + BINARY, BINARY);
         printf("  INSTALLING the executable `", where, "'\n");
-        run("icmbuild install program " + where);
+        run("cp tmp/bin/* " + where);
         exit(0);
     }
 
     if (what == "skel")
     {
-        where = setWhere(where, SKEL);
-
+        where = setWhere(where + SKEL, SKEL);
         printf("  INSTALLING skeleton files at `" + where + "'\n");
         md(where);
         run("cp skeletons/* " + where);
@@ -37,8 +29,7 @@ void install(string what, string where)
 
     if (what == "man")
     {
-        where = setWhere(where, MAN);
-
+        where = setWhere(where + MAN, MAN);
         printf("  INSTALLING the manual page at `", where, "'\n");
         run("gzip -9 < tmp/man/" PROGRAM ".1 > " + where + "/" PROGRAM ".1.gz");
         exit(0);
@@ -46,21 +37,18 @@ void install(string what, string where)
 
     if (what == "manual")
     {
-        where = setWhere(where, MANUAL);
-
+        where = setWhere(where + MANUAL, MANUAL);
         printf("  INSTALLING the manual at `", where, "'\n");
-        run("cp -r tmp/manual " + where);
-
+        md(where);
+        run("cp -r tmp/manual/* " + where);
         exit(0);
     }
 
     if (what == "std")
     {
-        where = setWhere(where, STD);
-
+        where = setWhere(where + STD, STD);
         printf("  INSTALLING the changelog at `", where, "\n");
         run("gzip -9 < changelog > " + where + "/changelog.gz");
-    
         printf("  INSTALLING the html-manual page at `", where, "\n");
         run("cp tmp/manhtml/" PROGRAM "man.html " + where);
         exit(0);
@@ -68,17 +56,14 @@ void install(string what, string where)
 
     if (what == "extra")
     {
-        where = setWhere(where, EXTRA);
-
+        where = setWhere(where + EXTRA, EXTRA);
         printf("  INSTALLING original bison's docs at `", where + "'\n");
         md(where + "/bison-docs");
         run("cp -r documentation/html "
                   "documentation/bison.ps.org " + where + "/bison-docs");
-
         printf("  INSTALLING examples at `", where + "'\n");
         run("cp -r documentation/examples " + where);
         run("cp -r documentation/man/calculator " + where + "/examples");
-
         printf("  INSTALLING regression tests at `", where + "'\n");
         run("cp -r documentation/regression " + where);
         exit(0);