diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-07 17:58:12 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-07 17:58:12 +0000 |
commit | d8947e7d9746d8fd3023ce53940fcb5bda11c0ee (patch) | |
tree | ed7daf08c57784fb3c03f07ae84d914f359abf5d /default.bld | |
parent | 13d3c1a40aef5a7025efb16c12d85089a1214afa (diff) | |
download | build-d8947e7d9746d8fd3023ce53940fcb5bda11c0ee.tar.gz build-d8947e7d9746d8fd3023ce53940fcb5bda11c0ee.tar.bz2 build-d8947e7d9746d8fd3023ce53940fcb5bda11c0ee.tar.xz build-d8947e7d9746d8fd3023ce53940fcb5bda11c0ee.zip |
More packaging tweaks.
Diffstat (limited to '')
-rw-r--r-- | default.bld | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/default.bld b/default.bld index 4691383..d88f3cd 100644 --- a/default.bld +++ b/default.bld | |||
@@ -11,7 +11,6 @@ CC = CXX; // We actually want to use c++ to compile our c files. | |||
11 | 11 | ||
12 | action "default" | 12 | action "default" |
13 | { | 13 | { |
14 | // build: "build"; | ||
15 | build: ["build", targets("plugins")]; | 14 | build: ["build", targets("plugins")]; |
16 | } | 15 | } |
17 | 16 | ||
@@ -20,11 +19,6 @@ action "man" | |||
20 | build: targets("all"); | 19 | build: targets("all"); |
21 | } | 20 | } |
22 | 21 | ||
23 | action "pkg" | ||
24 | { | ||
25 | build: targets("pkg"); | ||
26 | } | ||
27 | |||
28 | action "clean" | 22 | action "clean" |
29 | { | 23 | { |
30 | clean: "build"; | 24 | clean: "build"; |
@@ -70,88 +64,6 @@ for IN in files("src/plugins/*.cpp") do | |||
70 | } | 64 | } |
71 | } | 65 | } |
72 | 66 | ||
73 | target "minibu" | ||
74 | { | ||
75 | profile "build" | ||
76 | { | ||
77 | condition always; | ||
78 | execute("./build.sh setup"); | ||
79 | } | ||
80 | } | ||
81 | |||
82 | PKG_BASE = "build-$(cat version)-r$(svnversion "-n").tar"; | ||
83 | |||
84 | target PKG_BASE | ||
85 | { | ||
86 | input [ | ||
87 | "Doxyfile", | ||
88 | "default.bld", | ||
89 | "docs/build.1", | ||
90 | "docs/build.7", | ||
91 | "build.sh", | ||
92 | "support/vim/syntax/build.vim", | ||
93 | "support/vim/ftdetect/build.vim", | ||
94 | "support/vim/ftplugin/build.vim", | ||
95 | files("src/*.y"), | ||
96 | files("src/*.l"), | ||
97 | files("src/*.c"), | ||
98 | files("src/*.cpp"), | ||
99 | files("src/*.h"), | ||
100 | files("share/autoinclude/*"), | ||
101 | files("share/include/*"), | ||
102 | "minibu", | ||
103 | files("minibu/bu/*"), | ||
104 | files("minibu/src/*"), | ||
105 | files("bootstrap/*") | ||
106 | ]; | ||
107 | rule "tarball"; | ||
108 | tag "pkg"; | ||
109 | } | ||
110 | |||
111 | target PKG_BASE + ".gz" | ||
112 | { | ||
113 | input PKG_BASE; | ||
114 | tag "pkg"; | ||
115 | display "gzip"; | ||
116 | profile "build" | ||
117 | { | ||
118 | execute("gzip -9 < ${INPUT} > ${OUTPUT}"); | ||
119 | } | ||
120 | } | ||
121 | |||
122 | target PKG_BASE + ".bz2" | ||
123 | { | ||
124 | input PKG_BASE; | ||
125 | tag "pkg"; | ||
126 | display "bzip2"; | ||
127 | profile "build" | ||
128 | { | ||
129 | execute("bzip2 -9 < ${INPUT} > ${OUTPUT}"); | ||
130 | } | ||
131 | } | ||
132 | |||
133 | target PKG_BASE + ".xz" | ||
134 | { | ||
135 | input PKG_BASE; | ||
136 | tag "pkg"; | ||
137 | display "xz"; | ||
138 | profile "build" | ||
139 | { | ||
140 | execute("xz -9vv < ${INPUT} > ${OUTPUT}"); | ||
141 | } | ||
142 | } | ||
143 | |||
144 | rule "tarball" | ||
145 | { | ||
146 | input matches("*.cpp", "*.h", "*.c", "*.y", "*.l", "*.bld", "Doxyfile", | ||
147 | "*.1", "*.7", "*.vim", "*.sh"); | ||
148 | profile "build" | ||
149 | { | ||
150 | OUTDIR = OUTPUT.replace(".tar",""); | ||
151 | execute("tar -f ./${OUTPUT} --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT}"); | ||
152 | } | ||
153 | } | ||
154 | |||
155 | target "/usr/share/build" | 67 | target "/usr/share/build" |
156 | { | 68 | { |
157 | input "$(echo -n $PWD)/share"; | 69 | input "$(echo -n $PWD)/share"; |