-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathgsl.generate_artifacts.cmd
59 lines (49 loc) · 1.56 KB
/
gsl.generate_artifacts.cmd
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
.template 0
###############################################################################
# Copyright (c) 2014-2025 libbitcoin developers (see COPYING).
#
# GSL generate generate_artifacts.cmd.
#
# This is a code generator built using the iMatix GSL code generation
# language. See https://github.com/imatix/gsl for details.
###############################################################################
# Generation
###############################################################################
.endtemplate
.template 1
.macro generate_artifact()
. define out_file = "generate_artifacts.cmd"
. notify(out_file)
. output(out_file)
. batch_no_echo()
. bat_copyleft("libbitcoin-build")
REM Do everything relative to this file location.
pushd %~dp0
REM Generate build artifacts.
. for generate->templates.template as _template
gsl -q -script:templates\\$(_template.name) $(generate->templates.source)
if %errorlevel% neq 0 goto error
. endfor
echo --- OKAY, generation completed.
goto end
:error
echo *** ERROR, generation terminated early.
:end
REM Restore directory.
popd
.endmacro generate_artifact
.endtemplate
.template 0
###############################################################################
# Execution
###############################################################################
[global].root = ".."
[global].trace = 0
[gsl].ignorecase = 0
# Note: expected context root libbitcoin-build directory
gsl from "library/math.gsl"
gsl from "library/string.gsl"
gsl from "library/collections.gsl"
gsl from "utilities.gsl"
generate_artifact()
.endtemplate