Debian Codegraph @

texk/gregorio/gregorio-src/install.sh

raw symbols SCIP
1 #!/bin/bash
2
3 # Copyright (C) 2015-2025 The Gregorio Project (see CONTRIBUTORS.md)
4 #
5 # This file is part of Gregorio.
6 #
7 # Gregorio is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Gregorio is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Gregorio. If not, see <http://www.gnu.org/licenses/>.
19
20 # This script installs Gregorio and GregorioTeX as cloned from GitHub and built
21 # using build.sh for a GNU system (like GNU/Linux), using default options.
22 #
23 # For now, it passes its argument to install-gtex.sh, defaulting to system.
24 #
25 # If you need something more complex, you probably know more than we do, so run
26 # the commands manually.
27
28 function die {
29 echo "Failed to $1. Did you forget to run as root?"
30 exit 1
31 }
32
33 echo "Installing Gregorio"
34 make install || die "install Gregorio"
35 echo
36
37 echo "Installing GregorioTeX"
38 ./install-gtex.sh "${1:-system}" || die "install GregorioTeX"
39 echo
40
41 echo "Installation complete."
42
43 exit 0