1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
|
/*
* fhist - file history and comparison tools
* Copyright (C) 1998, 2001, 2003 Peter Miller;
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
*
* MANIFEST: How to build the release sets
*/
integration-build-targets:
archive/[project_minus].README
archive/[project_minus].lsm
archive/[project_minus].pdf
archive/[project_minus].spec
archive/[project_minus].tar.gz
archive/[project_short].gif
archive/[project_short].html
archive/.htaccess
archive/ChangeLog
;
source_file_order =
README
[sort
[stringset
[source_files]
BUILDING
LICENSE
MANIFEST
/*
* These two are for time stamping the distribution,
* and cranking on the version.
*/
common/patchlevel.h
/*
* These four are for building the distribution.
*/
Makefile.in
common/config.h.in
install-sh
configure
/*
* This is for building the RPM package
*/
[project_minus].spec
-
README
]
]
;
/*
* These recipes build a Makefile for a user. They do not build a
* Makefile useful for a development build, because no arch
* information is included in the Makefile.
*/
makefile-per-file = [prepost "" ",M" [source_files]];
Makefile.in: etc/Makefile.head etc/Makefile.sh etc/Makefile.awk
/* [vs_file] */
[makefile-per-file]
{
cat [resolve etc/Makefile.head [makefile-per-file]] > [target];
sh [resolve etc/Makefile.sh] [source_files]
| [awk] -f [resolve etc/Makefile.awk]
>> [target];
}
%0%,M: etc/Makefi.file.sh etc/Makefile.awk
{
depfile = [match_mask %%0%%,Md [need]];
sh [resolve etc/Makefi.file.sh] %0% [resolve %0%] [resolve [depfile]]
| [awk] -f [resolve etc/Makefile.awk]
> [target];
}
archive/[project_minus].tar.gz: [source_file_order]
set shallow
{
tar cf - [resolve [source_file_order]]
| tardy
-una Peter -gna Miller
-unu 0 -gnu 0
-ms 0644 -mc 07022
-now
-prefix\=[project_minus]
[prepost "-rp=" "" [search_list]]
| gzip -9
> [target];
}
archive/[project_minus].%: %
set shallow
{
cat [resolve [need]] > [target];
}
#include-cooked [addsuffix ".d" [match_mask etc/%.man [source_files]]]
/*
* This is not in the integration-build-targets because it takes far
* too long to do.
*/
RPM: archive/[project_minus]-1.i386.rpm;
archive/[project_minus]-1.i386.rpm archive/[project_minus]-1.src.rpm:
archive/[project_minus].tar.gz etc/rpm-build.sh
set shallow
{
sh [resolve etc/rpm-build.sh]
RPM-temporary
[resolve archive/[project_minus].tar.gz]
;
mv RPM-temporary/RPMS/i386/[project_minus]-1.i386.rpm
archive/[project_minus]-1.i386.rpm
;
mv RPM-temporary/SRPMS/[project_minus]-1.src.rpm
archive/[project_minus]-1.src.rpm
;
rm -r RPM-temporary;
}
[project_minus].spec: etc/spec.sh [source_files]
{
version\=[version_short]
sh [resolve etc/spec.sh] [source_files]
> [target];
}
archive/[project_minus].spec: [project_minus].spec
set shallow
{
cat [resolve [need]] > [target];
}
archive/%: etc/%.uue
set shallow
{
uudecode -o [target] [resolve [need]];
}
etc/[project_short].html.d: etc/[project_short].html
set no-cascade
{
c_incl -nc -ns -eia -r -nrec
[sort
[prepost "-I" /[arch]/etc [search_list]]
[prepost "-I" "/etc" [search_list]]
]
-prefix "'cascade etc/"[project_short]".html ='"
-suffix "';'"
[resolve etc/[project_short].html]
[prepost "-rlp=" "" [search_list]] /* remove leading path */
-slp [arch] "'[arch]'" /* substitute leading path */
-o [target];
}
#include-cooked-nowarn etc/[project_short].html.d
archive/[project_short].html: etc/[project_short].html etc/ssp.awk
set shallow
{
roffpp
[sort
[prepost "-I" /[arch]/etc [search_list]]
[prepost "-I" "/etc" [search_list]]
]
[resolve etc/[project_short].html]
| groff -Tascii -t -P-hub -man
| [awk] -f [resolve etc/ssp.awk]
> [target];
}
etc/[project_short].lsm.d: etc/[project_short].lsm
set no-cascade
{
c_incl -nc -ns -eia -r -nrec
[sort
[prepost "-I" /[arch]/etc [search_list]]
[prepost "-I" "/etc" [search_list]]
]
-prefix "'cascade etc/"[project_short]".lsm ='"
-suffix "';'"
[resolve etc/[project_short].lsm]
[prepost "-rlp=" "" [search_list]] /* remove leading path */
-slp [arch] "'[arch]'" /* substitute leading path */
-o [target];
}
#include-cooked-nowarn etc/[project_short].lsm.d
archive/[project_minus].lsm: etc/[project_short].lsm etc/ssp.awk
set shallow
{
roffpp
[sort
[prepost "-I" /[arch]/etc [search_list]]
[prepost "-I" "/etc" [search_list]]
]
[resolve etc/[project_short].lsm]
| groff -Tascii -t -P-hub -man
| [awk] -f [resolve etc/ssp.awk]
> [target];
}
%0%,m: %0%: etc/MANIFEST.sh
set no-cascade
{
sh [resolve etc/MANIFEST.sh] %0% [resolve %0%] > [target];
}
MANIFEST: etc/MANIFEST.head
[addsuffix ",m" [stringset [source_files] - MANIFEST]]
{
cat [resolve [need]] > [target];
}
LICENSE: lib/en/cat1/fhist_lic.1
{
cp [resolve [need]] [target];
}
%0%.y,M:: %0%.gen.c,Md;
%0%.c,M:: %0%.c,Md;
%1/%0%2.c,Md: %1/%0%2.c
{
c_incl
-nc /* no cache */
-ns /* no system */
-eia /* empty if absent */
[sort
[stringset
[cc_include_flags]
[prepost "-I" "/%1" [search_list]]
]
]
[resolve %1/%0%2.c]
-nsri /* no source relative includes */
[prepost "-rlp=" "" [search_list]] /* remove leading path */
-rlp [arch] /* remove leading architecture */
-o [target];
}
archive/[project_minus].pdf: lib/en/reference.pdf
set shallow
{
cp [resolve [need]] [target];
}
archive/.htaccess: etc/htaccess
set shallow
{
sed '/^#/d' < [resolve etc/htaccess] > [target];
}
archive/ChangeLog: [source_files]
{
aereport change_log -p fhist -c 1
-o [target] -pw\=80 -pl\=66;
}
/*
* Catch 22: You need to build these to be able to automatically discover
* that you need to build them. Sigh.
*/
cascade etc/fhist.html = etc/version.so;
cascade etc/fhist.lsm = etc/version.so;
|