aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-07 18:26:28 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-07 18:26:28 +0000
commit21cf5c846c1d004da98b4c93715ca44036f7ecd5 (patch)
treeb931bfa2b409730e3b294cd135024412fa56ae9e
parentd8947e7d9746d8fd3023ce53940fcb5bda11c0ee (diff)
downloadbuild-21cf5c846c1d004da98b4c93715ca44036f7ecd5.tar.gz
build-21cf5c846c1d004da98b4c93715ca44036f7ecd5.tar.bz2
build-21cf5c846c1d004da98b4c93715ca44036f7ecd5.tar.xz
build-21cf5c846c1d004da98b4c93715ca44036f7ecd5.zip
Forgot to include packaging buildfile.
Diffstat (limited to '')
-rw-r--r--pkg.bld88
1 files changed, 88 insertions, 0 deletions
diff --git a/pkg.bld b/pkg.bld
new file mode 100644
index 0000000..1f0e8f3
--- /dev/null
+++ b/pkg.bld
@@ -0,0 +1,88 @@
1
2action "default"
3{
4 build: targets("pkg");
5}
6
7target "minibu"
8{
9 profile "build"
10 {
11 condition always;
12 execute("./build.sh setup");
13 }
14}
15
16PKG_BASE = "build-$(cat version)-r$(svnversion "-n").tar";
17
18target PKG_BASE
19{
20 input [
21 "Doxyfile",
22 files("*.bld"),
23 "docs/build.1",
24 "docs/build.7",
25 "build.sh",
26 "version",
27 "support/vim/syntax/build.vim",
28 "support/vim/ftdetect/build.vim",
29 "support/vim/ftplugin/build.vim",
30 files("src/*.y"),
31 files("src/*.l"),
32 files("src/*.c"),
33 files("src/*.cpp"),
34 files("src/*.h"),
35 files("share/autoinclude/*"),
36 files("share/include/*"),
37 "minibu",
38 files("minibu/bu/*"),
39 files("minibu/src/*"),
40 files("bootstrap/*")
41 ];
42 rule "tarball";
43 tag "pkg";
44}
45
46target PKG_BASE + ".gz"
47{
48 input PKG_BASE;
49 tag "pkg";
50 display "gzip";
51 profile "build"
52 {
53 execute("gzip -9 < ${INPUT} > ${OUTPUT}");
54 }
55}
56
57target PKG_BASE + ".bz2"
58{
59 input PKG_BASE;
60 tag "pkg";
61 display "bzip2";
62 profile "build"
63 {
64 execute("bzip2 -9 < ${INPUT} > ${OUTPUT}");
65 }
66}
67
68target PKG_BASE + ".xz"
69{
70 input PKG_BASE;
71 tag "pkg";
72 display "xz";
73 profile "build"
74 {
75 execute("xz -9vv < ${INPUT} > ${OUTPUT}");
76 }
77}
78
79rule "tarball"
80{
81 input matches("*.cpp", "*.h", "*.c", "*.y", "*.l", "*.bld", "Doxyfile",
82 "*.1", "*.7", "*.vim", "*.sh", "version");
83 profile "build"
84 {
85 OUTDIR = OUTPUT.replace(".tar","");
86 execute("tar -f ./${OUTPUT} --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT}");
87 }
88}