-
Notifications
You must be signed in to change notification settings - Fork 25
/
generate3.sh
executable file
·42 lines (34 loc) · 1.32 KB
/
generate3.sh
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
#!/bin/bash
###############################################################################
# Copyright (c) 2014-2023 libbitcoin developers (see COPYING).
#
# Generate libbitcoin build artifacts from XML + GSL.
#
# This executes the iMatix GSL code generator.
# See https://github.com/imatix/gsl for details.
###############################################################################
# Exit this script on the first build error.
set -e
# Do everything relative to this file location.
cd `dirname "$0"`
# Clean directories for generated build artifacts.
eval rm -rf "output"
# Generate property copiers and artifact generators.
eval gsl -q -script:gsl.copy_modules.sh generate3.xml
eval gsl -q -script:gsl.copy_properties.sh generate3.xml
eval gsl -q -script:gsl.generate_artifacts.sh generate3.xml
# Generate bindings from generated binding generators.
# The path to swig must be in our path.
# for generate.repository by name as _repo
# eval ../$(_repo.name)/bindings.sh
# endfor
# Make property copiers and artifact generators executable.
eval chmod +x copy_modules.sh
eval chmod +x copy_properties.sh
eval chmod +x generate_artifacts.sh
# Execute property copiers and artifact generators.
eval ./copy_modules.sh
eval ./copy_properties.sh
eval ./generate_artifacts.sh
# Copy outputs to all repositories.
eval cp -rf "output/." "../"