Differences From
Artifact [29834379ec]:
35 35 online = u.tobool(default('parsav_online_documentation',true));
36 36 offline = u.tobool(default('parsav_offline_documentation',true));
37 37 };
38 38 outform = default('parsav_emit_type', 'o');
39 39 endian = default('parsav_arch_endian', 'little');
40 + prefix = default('parsav_install_prefix', './');
40 41 build = {
41 42 id = u.rndstr(6);
42 43 release = u.ingest('release');
43 44 when = os.date();
44 45 };
45 46 feat = {};
47 + debug = u.tobool(default('parsav_enable_debug',true));
46 48 backends = defaultlist('parsav_backends', 'pgsql');
47 49 braingeniousmode = false;
48 50 embeds = {
49 51 {'style.css', 'text/css'};
50 52 {'default-avatar.webp', 'image/webp'};
................................................................................
60 62 conf.build.branch = u.exec { 'fossil', 'branch', 'current' }
61 63 conf.build.checkout = (u.exec { 'fossil', 'sql',
62 64 [[select value from localdb.vvar where name = 'checkout-hash']]
63 65 }):gsub("^'(.*)'$", '%1')
64 66 end
65 -conf.os = default('parsav_host_os', default_os);
66 -conf.tgtos = default('parsav_target_os', default_os);
67 +conf.os = default('parsav_host_os', default_os)
68 +conf.tgtos = default('parsav_target_os', default_os)
67 69 conf.posix = posixes[conf.os]
68 -conf.exe = u.tobool(default('parsav_link',not conf.tgttrip)); -- turn off for partial builds
70 +conf.exe = u.tobool(default('parsav_link',not conf.tgttrip)) -- turn off for partial builds
71 +conf.prefix_conf = default('parsav_install_prefix_cfg', conf.prefix)
72 +conf.prefix_static = default('parsav_install_prefix_static', nil)
69 73 conf.build.origin = coalesce(
70 74 os.getenv('parsav_builder'),
71 75 string.format('%s@%s', coalesce (
72 76 os.getenv('USER'),
73 77 u.exec{'whoami'}