aboutsummaryrefslogtreecommitdiff
path: root/pkg.bld
diff options
context:
space:
mode:
Diffstat (limited to 'pkg.bld')
-rw-r--r--pkg.bld90
1 files changed, 90 insertions, 0 deletions
diff --git a/pkg.bld b/pkg.bld
new file mode 100644
index 0000000..cd9f545
--- /dev/null
+++ b/pkg.bld
@@ -0,0 +1,90 @@
1action "default"
2{
3 build: targets("pkg");
4}
5
6PKG_BASE = "libbu++-$(cat version)-r$(svnversion "-n").tar";
7
8target PKG_BASE
9{
10 input [
11 "LICENSE",
12 "README.md",
13 "Doxyfile",
14 "Makefile",
15 "version",
16 files("*.bld"),
17 "support/vim/syntax/taf.vim",
18 "support/vim/ftdetect/taf.vim",
19 "support/vim/ftplugin/taf.vim",
20 files("*.sh"),
21 files("autoconfig.cpp"),
22 files("src/*.cpp"),
23 files("src/*.h"),
24 files("src/stable/*.cpp"),
25 files("src/stable/*.h"),
26 files("src/unstable/*.cpp"),
27 files("src/unstable/*.h"),
28 files("src/experimental/*.cpp"),
29 files("src/experimental/*.h"),
30 files("src/tests/*.cpp"),
31 files("src/tests*.h"),
32 files("src/tools/*.cpp"),
33 files("src/tools/*.h"),
34 files("src/unit/*.unit"),
35 files("src/doxy/*.dox"),
36 files("src/compat/*.cpp"),
37 files("src/compat/*.h"),
38 files("src/extra/*.cpp"),
39 files("src/extra/*.h"),
40 files("pregen/*"),
41 "api"
42 ];
43 rule "tarball";
44 tag "pkg";
45}
46
47target PKG_BASE + ".gz"
48{
49 input PKG_BASE;
50 tag "pkg";
51 display "gzip";
52 profile "build"
53 {
54 execute("gzip -9 < ${INPUT} > ${OUTPUT}");
55 }
56}
57
58target PKG_BASE + ".bz2"
59{
60 input PKG_BASE;
61 tag "pkg";
62 display "bzip2";
63 profile "build"
64 {
65 execute("bzip2 -9 < ${INPUT} > ${OUTPUT}");
66 }
67}
68
69target PKG_BASE + ".xz"
70{
71 input PKG_BASE;
72 tag "pkg";
73 display "xz";
74 profile "build"
75 {
76 execute("xz -9vv < ${INPUT} > ${OUTPUT}");
77 }
78}
79
80rule "tarball"
81{
82 input matches("LICENSE", "*.md", "Makefile", "*.cpp", "*.h", "*.conf",
83 "*.bld", "Doxyfile", "*.vim", "*.sh", "*.unit", "api", "version");
84 profile "build"
85 {
86 OUTDIR = OUTPUT.replace(".tar","");
87 execute("tar -f ./${OUTPUT} --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT}");
88 }
89}
90