program
comment "#!/usr/bin/env bash"
comment "#/**********************************************************"...
comment "# Freeciv - Copyright (C) 2017-2023"
comment "# This program is free software; you can redistribute it a"...
comment "# it under the terms of the GNU General Public License as "...
comment "# the Free Software Foundation; either version 2, or (at y"...
comment "# any later version."
comment "#"
comment "# This program is distributed in the hope that it will be "...
comment "# but WITHOUT ANY WARRANTY; without even the implied warra"...
comment "# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Se"...
comment "# GNU General Public License for more details."
comment "#"
comment "#***********************************************************"...
comment "#"
comment "# Freeciv CI Script"
comment "#"
comment "# https://github.com/freeciv/freeciv/actions"
comment "#"
command
command_name
word "echo"
string
" "\""
string_content "Running CI job "
simple_expansion
$ "$"
variable_name "1"
string_content " for Freeciv."
" "\""
variable_assignment
variable_name "basedir"
= "="
command_substitution
$( "$("
command
command_name
word "pwd"
) ")"
variable_assignment
variable_name "logfile"
= "="
string
" "\""
expansion
${ "${"
variable_name "basedir"
} "}"
string_content "/freeciv-CI.log"
" "\""
comment "# Redirect copy of output to a log file."
redirected_statement
command
command_name
word "exec"
file_redirect
> ">"
process_substitution
>( ">("
command
command_name
word "tee"
expansion
${ "${"
variable_name "logfile"
} "}"
) ")"
redirected_statement
command
command_name
word "exec"
file_redirect
file_descriptor "2"
>& ">&"
number "1"
command
command_name
word "set"
word "-e"
command
command_name
word "uname"
word "-a"
case_statement
case "case"
simple_expansion
$ "$"
variable_name "1"
in "in"
case_item (+78 nodes collapsed)
case_item (+313 nodes collapsed)
case_item (+320 nodes collapsed)
case_item
string
" "\""
string_content "clang_debug"
" "\""
) ")"
comment "# Configure and build Freeciv"
command
command_name
word "mkdir"
word "build"
command
command_name
word "cd"
word "build"
list
command
command_name
word "../autogen.sh"
concatenation
word "CC="
string
" "\""
string_content "clang"
" "\""
concatenation
word "CXX="
string
" "\""
string_content "clang++"
" "\""
word "--enable-ack-legacy"
word "--enable-debug"
word "--enable-sys-lua"
word "--enable-sys-tolua-cmd"
word "--disable-fcdb"
word "--with-qtver=qt6"
word "--enable-client=gtk3.22,qt,sdl2,gtk4,stub"
word "--enable-fcmp=cli,gtk3,qt,gtk4"
word "--enable-fcdb=sqlite3,mysql,postgres,odbc"
word "--enable-freeciv-manual"
word "--enable-ai-static=classic,tex,stub"
concatenation
word "--prefix="
expansion
${ "${"
variable_name "HOME"
} "}"
word "/freeciv/clang"
|| "||"
subshell (+37 nodes collapsed)
command
command_name
word "make"
word "-s"
concatenation
word "-j"
command_substitution
$( "$("
command
command_name
word "nproc"
) ")"
command
command_name
word "make"
word "install"
;; ";;"
case_item (+103 nodes collapsed)
case_item (+63 nodes collapsed)
case_item (+116 nodes collapsed)
case_item (+23 nodes collapsed)
esac "esac"