summaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld60
1 files changed, 53 insertions, 7 deletions
diff --git a/default.bld b/default.bld
index c7a597e..3e7b692 100644
--- a/default.bld
+++ b/default.bld
@@ -1,5 +1,5 @@
1/* test 1/* test
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved. 2 * Copyright (C) 2007-2012 Xagasoft, All rights reserved.
3 * 3 *
4 * This file is part of the libbu++ library and is released under the 4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE. 5 * terms of the license contained in the file LICENSE.
@@ -236,18 +236,28 @@ target files("src/unit/*.unit").replace("src/","").replace(".unit","")
236 LDFLAGS += "-L. -lbu++"; 236 LDFLAGS += "-L. -lbu++";
237} 237}
238 238
239target "libbu++-r$(svnversion "-n").tar.bz2" 239PKG_BASE = "libbu++-$(cat version)-r$(svnversion "-n").tar";
240
241target PKG_BASE
240{ 242{
241 input [ 243 input [
242 "LICENSE", 244 "LICENSE",
243 "Doxyfile", 245 "Doxyfile",
246 "Makefile",
244 files("*.bld"), 247 files("*.bld"),
245 "support/vim/syntax/taf.vim", 248 "support/vim/syntax/taf.vim",
246 "support/vim/ftdetect/taf.vim", 249 "support/vim/ftdetect/taf.vim",
247 "support/vim/ftplugin/taf.vim", 250 "support/vim/ftplugin/taf.vim",
248 files("*.sh"), 251 files("*.sh"),
252 files("autoconfig.cpp"),
249 files("src/*.cpp"), 253 files("src/*.cpp"),
250 files("src/*.h"), 254 files("src/*.h"),
255 files("src/stable/*.cpp"),
256 files("src/stable/*.h"),
257 files("src/unstable/*.cpp"),
258 files("src/unstable/*.h"),
259 files("src/experimental/*.cpp"),
260 files("src/experimental/*.h"),
251 files("src/tests/*.cpp"), 261 files("src/tests/*.cpp"),
252 files("src/tests*.h"), 262 files("src/tests*.h"),
253 files("src/tools/*.cpp"), 263 files("src/tools/*.cpp"),
@@ -255,21 +265,57 @@ target "libbu++-r$(svnversion "-n").tar.bz2"
255 files("src/unit/*.unit"), 265 files("src/unit/*.unit"),
256 files("src/doxy/*.dox"), 266 files("src/doxy/*.dox"),
257 files("src/compat/*.cpp"), 267 files("src/compat/*.cpp"),
258 files("src/compat/*.h") 268 files("src/compat/*.h"),
269 files("src/extra/*.cpp"),
270 files("src/extra/*.h"),
271 files("pregen/*"),
272 "api"
259 ]; 273 ];
260 rule "tarball"; 274 rule "tarball";
261 tag "pkg"; 275 tag "pkg";
262} 276}
263 277
278target PKG_BASE + ".gz"
279{
280 input PKG_BASE;
281 tag "pkg";
282 display "gzip";
283 profile "build"
284 {
285 execute("gzip -9 < ${INPUT} > ${OUTPUT}");
286 }
287}
288
289target PKG_BASE + ".bz2"
290{
291 input PKG_BASE;
292 tag "pkg";
293 display "bzip2";
294 profile "build"
295 {
296 execute("bzip2 -9 < ${INPUT} > ${OUTPUT}");
297 }
298}
299
300target PKG_BASE + ".xz"
301{
302 input PKG_BASE;
303 tag "pkg";
304 display "xz";
305 profile "build"
306 {
307 execute("xz -9 < ${INPUT} > ${OUTPUT}");
308 }
309}
310
264rule "tarball" 311rule "tarball"
265{ 312{
266 input matches("LICENSE", "*.cpp", "*.h", "*.conf", "*.bld", "Doxyfile", 313 input matches("LICENSE", "Makefile", "*.cpp", "*.h", "*.conf", "*.bld",
267 "*.vim", "*.sh", "*.unit"); 314 "Doxyfile", "*.vim", "*.sh", "*.unit", "api");
268 profile "build" 315 profile "build"
269 { 316 {
270 OUTDIR = OUTPUT.replace(".tar.bz2",""); 317 OUTDIR = OUTPUT.replace(".tar.bz2","");
271 execute("tar --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT} |" 318 execute("tar -f ./${OUTPUT} --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT}");
272 " bzip2 -9 > ${OUTPUT}");
273 } 319 }
274} 320}
275 321