diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-07 18:05:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-07 18:05:49 +0000 |
commit | ba177923d7b60800ae2e01f80fc10dc8ad1594bb (patch) | |
tree | 5a464a811ba7bd2302b7a0f3602fc66d4a7423a3 /pkg.bld | |
parent | 8ef256aeff4c75e7a6d3fc2b9e4882869ce5f8ac (diff) | |
download | libbu++-ba177923d7b60800ae2e01f80fc10dc8ad1594bb.tar.gz libbu++-ba177923d7b60800ae2e01f80fc10dc8ad1594bb.tar.bz2 libbu++-ba177923d7b60800ae2e01f80fc10dc8ad1594bb.tar.xz libbu++-ba177923d7b60800ae2e01f80fc10dc8ad1594bb.zip |
Packaging tweaks. It works better with a tarball now.
Diffstat (limited to 'pkg.bld')
-rw-r--r-- | pkg.bld | 90 |
1 files changed, 90 insertions, 0 deletions
@@ -0,0 +1,90 @@ | |||
1 | action "default" | ||
2 | { | ||
3 | build: targets("pkg"); | ||
4 | } | ||
5 | |||
6 | PKG_BASE = "libbu++-$(cat version)-r$(svnversion "-n").tar"; | ||
7 | |||
8 | target 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 | |||
47 | target 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 | |||
58 | target 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 | |||
69 | target 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 | |||
80 | rule "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 | |||