File: Howto.cook

package info (click to toggle)
wdm 1.28-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,004 kB
  • ctags: 1,144
  • sloc: ansic: 11,448; sh: 945; makefile: 452; perl: 29; cpp: 10
file content (71 lines) | stat: -rw-r--r-- 1,450 bytes parent folder | download | duplicates (11)
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
set mkdir;
set time-adjust-back;

if [not [defined search_path]] then search_path=;

search_list = .;
search_path = [tail [split ':' [search_path]]];
search_name = bl;
loop
{
	search_dir = [head [search_path]];
	if [not [search_dir]] then
		loopstop;
	search_path = [tail [search_path]];
	if [not [exists-symlink [search_name]]] then
	{
		ln -s [search_dir] [search_name]
			set clearstat;
	}
	else
	{
		if [not [exists [search_name]]] then
		{
			rm -f [search_name]
				set clearstat;
			ln -s [search_dir] [search_name]
				set clearstat;
		}
	}
	search_list = [search_list] [search_name];
	search_name = [search_name]bl;
}

if [match_mask %1C%2 [version]] then
{
	development = 1;
	integration = 0;
}
else
{
	development = 0;
	integration = 1;
}

version_short = [fromto %1.C%2 %1 [subst D C [version]]];
project_short = [fromto %.[version_short] % [project]];
all =;

#include-cooked-nowarn etc/Howto.conf
#include-cooked [resolve etc/sourcelist.cook]

if [not [defined all]] then all=;

all: [all];
{
}

etc/Howto.conf : etc/Howto.conf.in config.status
{
	CONFIG_FILES\=[target]\:[resolve etc/Howto.conf.in] CONFIG_HEADERS\=
		[pathname [resolve config.status]];
	rm -f config.log;
}

#include-cooked [resolve etc/configure.cook]
#include-cooked [resolve etc/archive.cook]
#include-cooked [resolve etc/functions.cook]
#include-cooked [resolve etc/build.cook]
#include-cooked [resolve etc/i18n.cook]
#include-cooked [resolve etc/makefile.cook]