Debian Codegraph @

tools/internal/check_lpg_compilation

raw symbols SCIP
1 #!/bin/bash
2 set -euo pipefail
3 IFS=$'\n\t'
4
5 # --------------------------------------------------------------------
6 # Check LPG (Lazarus project group) compilation.
7 # While lazbuild cannot compile LPG directly, we make a little hack extracting
8 # project names from LPG and compiling them separately.
9 # At least we detect simple mistakes like wrong path / filename of LPI
10 # (in case we changed them, but forgot to update LPG).
11 #
12 # Assumes $CASTLE_ENGINE_PATH is set.
13 # Current directory doesn't matter.
14 # --------------------------------------------------------------------
15
16 cd $CASTLE_ENGINE_PATH
17
18 grep '<Target FileName="' 'most_important_lazarus_packages_and_tools.lpg' | \
19 sed 's|.*<Target FileName="\([^"]*\)".*|\1|' | \
20 xargs --max-args=1 lazbuild