Debian Codegraph @

windows/install-packages.sh

raw
1 #!/bin/bash
2
3 # On a Debian system, install the packages needed for Windows
4 # cross-compilation, and also setup the cross-compiler alternatives.
5
6 # Copyright © 2017-2026 Dynare Team
7 #
8 # This file is part of Dynare.
9 #
10 # Dynare is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
14 #
15 # Dynare is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with Dynare. If not, see <https://www.gnu.org/licenses/>.
22
23 [[ $(id -u) == 0 ]] || { echo "You must be root" >&2; exit 1; }
24
25 PACKAGES=(make 7zip zstd wget meson pkg-config-mingw-w64-ucrt64
26 gcc-mingw-w64-ucrt64 g++-mingw-w64-ucrt64
27 gfortran-mingw-w64-ucrt64 flex libfl-dev bison texlive
28 texlive-publishers texlive-latex-extra texlive-science
29 texlive-fonts-extra lmodern cm-super python3-sphinx latexmk nsis
30 cmake)
31
32 apt install "${PACKAGES[@]}"