diff options
Diffstat (limited to 'default.bld')
-rw-r--r-- | default.bld | 56 |
1 files changed, 51 insertions, 5 deletions
diff --git a/default.bld b/default.bld index 6309518..fbf33df 100644 --- a/default.bld +++ b/default.bld | |||
@@ -70,10 +70,20 @@ for IN in files("src/plugins/*.cpp") do | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | target "build-r$(svnversion "-n").tar.bz2" | 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 | ||
74 | { | 85 | { |
75 | input [ | 86 | input [ |
76 | "build.conf", | ||
77 | "Doxyfile", | 87 | "Doxyfile", |
78 | "default.bld", | 88 | "default.bld", |
79 | "docs/build.1", | 89 | "docs/build.1", |
@@ -83,15 +93,52 @@ target "build-r$(svnversion "-n").tar.bz2" | |||
83 | "support/vim/ftplugin/build.vim", | 93 | "support/vim/ftplugin/build.vim", |
84 | files("src/*.y"), | 94 | files("src/*.y"), |
85 | files("src/*.l"), | 95 | files("src/*.l"), |
96 | files("src/*.c"), | ||
86 | files("src/*.cpp"), | 97 | files("src/*.cpp"), |
87 | files("src/*.h"), | 98 | files("src/*.h"), |
88 | files("share/autoinclude/*"), | 99 | files("share/autoinclude/*"), |
89 | files("share/include/*") | 100 | files("share/include/*"), |
101 | "minibu", | ||
102 | files("minibu/bu/*"), | ||
103 | files("minibu/src/*") | ||
90 | ]; | 104 | ]; |
91 | rule "tarball"; | 105 | rule "tarball"; |
92 | tag "pkg"; | 106 | tag "pkg"; |
93 | } | 107 | } |
94 | 108 | ||
109 | target PKG_BASE + ".gz" | ||
110 | { | ||
111 | input PKG_BASE; | ||
112 | tag "pkg"; | ||
113 | display "gzip"; | ||
114 | profile "build" | ||
115 | { | ||
116 | execute("gzip -9 < ${INPUT} > ${OUTPUT}"); | ||
117 | } | ||
118 | } | ||
119 | |||
120 | target PKG_BASE + ".bz2" | ||
121 | { | ||
122 | input PKG_BASE; | ||
123 | tag "pkg"; | ||
124 | display "bzip2"; | ||
125 | profile "build" | ||
126 | { | ||
127 | execute("bzip2 -9 < ${INPUT} > ${OUTPUT}"); | ||
128 | } | ||
129 | } | ||
130 | |||
131 | target PKG_BASE + ".xz" | ||
132 | { | ||
133 | input PKG_BASE; | ||
134 | tag "pkg"; | ||
135 | display "xz"; | ||
136 | profile "build" | ||
137 | { | ||
138 | execute("xz -9vv < ${INPUT} > ${OUTPUT}"); | ||
139 | } | ||
140 | } | ||
141 | |||
95 | rule "tarball" | 142 | rule "tarball" |
96 | { | 143 | { |
97 | input matches("*.cpp", "*.h", "*.c", "*.y", "*.l", "*.conf", "Doxyfile", | 144 | input matches("*.cpp", "*.h", "*.c", "*.y", "*.l", "*.conf", "Doxyfile", |
@@ -99,8 +146,7 @@ rule "tarball" | |||
99 | profile "build" | 146 | profile "build" |
100 | { | 147 | { |
101 | OUTDIR = OUTPUT.replace(".tar.bz2",""); | 148 | OUTDIR = OUTPUT.replace(".tar.bz2",""); |
102 | execute("tar --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT} |" | 149 | execute("tar -f ./${OUTPUT} --transform=\"s@^@${OUTDIR}/@\" -c ${INPUT}"); |
103 | " bzip2 -9 > ${OUTPUT}"); | ||
104 | } | 150 | } |
105 | } | 151 | } |
106 | 152 | ||