| 1 |
/* |
| 2 |
* fstrcmp - fuzzy string compare library |
| 3 |
* Copyright (C) 2009, 2012, 2014 Peter Miller |
| 4 |
* |
| 5 |
* This program is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 3 of the License, or |
| 8 |
* (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License along |
| 16 |
* with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
integration-build-targets += |
| 20 |
web-site/[project_minus].tar.gz |
| 21 |
; |
| 22 |
|
| 23 |
/* Need gnu style tar to build the tarball - so try different names */ |
| 24 |
if [find_command gnutar] then |
| 25 |
tar-cmd = gnutar; |
| 26 |
else if [find_command gtar] then |
| 27 |
tar-cmd = gtar; |
| 28 |
else |
| 29 |
tar-cmd = tar; |
| 30 |
|
| 31 |
|
| 32 |
check-tarball: etc/check-tarball.sh web-site/[project_minus].tar.gz |
| 33 |
{ |
| 34 |
sh [resolve etc/check-tarball.sh web-site/[project_minus].tar.gz]; |
| 35 |
} |
| 36 |
|
| 37 |
source_file_order = |
| 38 |
README |
| 39 |
BUILDING |
| 40 |
LICENSE |
| 41 |
[source_files] |
| 42 |
|
| 43 |
/* |
| 44 |
* Generated by autoconf |
| 45 |
*/ |
| 46 |
Makefile.in |
| 47 |
install-sh |
| 48 |
config.guess |
| 49 |
config.sub |
| 50 |
configure |
| 51 |
lib/config.h.in |
| 52 |
|
| 53 |
/* |
| 54 |
* version stamps |
| 55 |
*/ |
| 56 |
lib/patchlevel.h |
| 57 |
etc/version.so |
| 58 |
|
| 59 |
/* |
| 60 |
* for the reference manual |
| 61 |
*/ |
| 62 |
etc/ref-parts.so |
| 63 |
etc/new.so |
| 64 |
|
| 65 |
/* |
| 66 |
* For pkg-config |
| 67 |
*/ |
| 68 |
libdir/pkgconfig/[project_short].pc.in |
| 69 |
|
| 70 |
/* |
| 71 |
* for message translators |
| 72 |
*/ |
| 73 |
po/fstrcmp.pot |
| 74 |
; |
| 75 |
|
| 76 |
debian-aemakegen-files = |
| 77 |
debian/changelog |
| 78 |
debian/compat |
| 79 |
debian/control |
| 80 |
debian/fstrcmp-doc.doc-base |
| 81 |
debian/fstrcmp-doc.install |
| 82 |
debian/fstrcmp.install |
| 83 |
debian/libfstrcmp-dev.install |
| 84 |
/* debian/libfstrcmp0.install <= the number will change over time */ |
| 85 |
debian/rules |
| 86 |
debian/source/format |
| 87 |
; |
| 88 |
debian-built-files = |
| 89 |
[debian-aemakegen-files] |
| 90 |
debian/copyright |
| 91 |
; |
| 92 |
|
| 93 |
web-site/%.tar.gz: [source_file_order] [debian-built-files] |
| 94 |
set shallow ingredients-fingerprint |
| 95 |
{ |
| 96 |
[tar-cmd] --create --file - --dereference |
| 97 |
[resolve [sort [source_file_order]]] |
| 98 |
[resolve [debian-built-files]] |
| 99 |
'debian/libfstrcmp[0-9]*.install' |
| 100 |
| tardy -unu 0 -gnu 0 -una Peter -gna Miller |
| 101 |
-p % -ms 0644 -mc 07022 -now |
| 102 |
[prepost "-rp=" "" [search_list]] |
| 103 |
- /* stdin */ |
| 104 |
[target] |
| 105 |
; |
| 106 |
} |
| 107 |
|
| 108 |
|
| 109 |
/* |
| 110 |
* The version stamp is to be updated for every |
| 111 |
* integration and development build. |
| 112 |
*/ |
| 113 |
vs_file = lib/patchlevel.h; |
| 114 |
|
| 115 |
[vs_file]: |
| 116 |
set shallow |
| 117 |
{ |
| 118 |
echo "'#define PATCHLEVEL \""[version]"\"'" |
| 119 |
> [target]; |
| 120 |
aesub -p [project] -c [change] |
| 121 |
"'#define COPYRIGHT_YEARS \"${copyright_years}\"'" |
| 122 |
>> [target]; |
| 123 |
} |
| 124 |
|
| 125 |
cascade lib/version.c = [vs_file]; |
| 126 |
|
| 127 |
aemakegen = aemakegen; |
| 128 |
|
| 129 |
Makefile.in: [source_files] |
| 130 |
{ |
| 131 |
[aemakegen] -p [project] -c [change] -o [target] |
| 132 |
libdir/pkgconfig/[project_short].pc.in |
| 133 |
; |
| 134 |
cat [resolve etc/makefile-tail] >> [target]; |
| 135 |
} |
| 136 |
|
| 137 |
etc/version.so: |
| 138 |
set shallow |
| 139 |
{ |
| 140 |
aesub "'.ds v) ${project version}'" > [target]; |
| 141 |
aesub "'.ds V) ${version}'" >> [target]; |
| 142 |
aesub "'.ds Y) ${copyright_years}'" >> [target]; |
| 143 |
} |
| 144 |
|
| 145 |
[debian-aemakegen-files]: [source_files] |
| 146 |
set shallow |
| 147 |
{ |
| 148 |
[aemakegen] -p [project] -c [change] --target\=debian |
| 149 |
libdir/pkgconfig/[project_short].pc.in |
| 150 |
; |
| 151 |
} |
| 152 |
|
| 153 |
debian/copyright: [source_files] |
| 154 |
set shallow |
| 155 |
{ |
| 156 |
licensecheck "--check='[.]asm$|[.][chy]$'" --copyright [resolve [need]] |
| 157 |
| sed "'s|^bl\\(bl\\)*/||'" |
| 158 |
| /usr/lib/cdbs/licensecheck2dep5 |
| 159 |
| awk -f [resolve etc/deb-cop-fix.awk] |
| 160 |
> [target] |
| 161 |
; |
| 162 |
} |
| 163 |
|
| 164 |
|
| 165 |
/* |
| 166 |
* if [or |
| 167 |
* [in [fromto %1D%2 %2 [version]] 001 002 003 004] |
| 168 |
* [collect "set +e; on_ac_power; expr 1 - $?; exit 0" ] |
| 169 |
* ] then |
| 170 |
*/ |
| 171 |
if [in [fromto %1D%2 %2 [version]] 001 002 003 004] then |
| 172 |
{ |
| 173 |
integration-build-targets += debian-package; |
| 174 |
} |
| 175 |
|
| 176 |
debian-package: web-site/[project_minus].tar.gz bin/test_user |
| 177 |
[debian-built-files] etc/debian-package.sh |
| 178 |
{ |
| 179 |
local vsn = [collect head -1 [resolve debian/changelog] |
| 180 |
| sed "'s|.*(\\([^()]*\\).*|\\1|'" ]; |
| 181 |
vsn = [fromto %-1 % [vsn]]; |
| 182 |
function print "vsn = '"[vsn]"'"; |
| 183 |
if [not [in [count [vsn]] 1]] then |
| 184 |
fail "debian version not right"; |
| 185 |
local tarball = [project_short]_[vsn].orig.tar.gz; |
| 186 |
|
| 187 |
local user = [collect [resolve bin/test_user]]; |
| 188 |
local key = ; |
| 189 |
if [in [user] archives] then |
| 190 |
key = -k19CEC7D5; |
| 191 |
else |
| 192 |
key = -us -uc; |
| 193 |
|
| 194 |
sh [resolve etc/debian-package.sh] |
| 195 |
[key] |
| 196 |
web-site/[project_minus].tar.gz |
| 197 |
[tarball] |
| 198 |
; |
| 199 |
} |
| 200 |
|
| 201 |
libdir/pkgconfig/[project_short].pc.in: [source_files] |
| 202 |
{ |
| 203 |
[aemakegen] -p\=[project] -c\=[change] --target\=pkg-config |
| 204 |
> [target]; |
| 205 |
} |
| 206 |
|
| 207 |
cascade etc/reference.man = etc/version.so; |
| 208 |
cascade etc/readme.man = etc/version.so; |
| 209 |
cascade etc/building.man = etc/version.so; |