program
comment "#!/bin/sh"
comment "#"
comment "# This file is part of nzbget. See <https://nzbget.com>."
comment "#"
comment "# Copyright (C) 2024 phnzb <pavel@nzbget.com>"
comment "#"
comment "# This program is free software; you can redistribute it an"...
comment "# it under the terms of the GNU General Public License as p"...
comment "# the Free Software Foundation; either version 2 of the Lic"...
comment "# (at your option) any later version."
comment "#"
comment "# This program is distributed in the hope that it will be u"...
comment "# but WITHOUT ANY WARRANTY; without even the implied warran"...
comment "# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See"...
comment "# GNU General Public License for more details."
comment "#"
comment "# You should have received a copy of the GNU General Public"...
comment "# along with this program. If not, see <http://www.gnu.org"...
comment "#"
comment "# strict error handling for debugging"
command
command_name
word "set"
word "-o"
word "nounset"
command
command_name
word "set"
word "-o"
word "errexit"
comment "# unpackers versions"
variable_assignment
variable_name "UNRAR_VERSION"
= "="
number "712"
variable_assignment
variable_name "ZIP7_VERSION"
= "="
number "2408"
comment "# make jobs"
variable_assignment
variable_name "JOBS"
= "="
command_substitution
$( "$("
command
command_name
word "sysctl"
word "-n"
word "hw.ncpu"
) ")"
comment "# command-line params handling"
variable_assignment
variable_name "ALL_ARCHS"
= "="
string
" "\""
string_content "x64 arm64"
" "\""
variable_assignment
variable_name "ARCHS"
= "="
string
" "\""
" "\""
variable_assignment
variable_name "CONFIGS"
= "="
string
" "\""
" "\""
variable_assignment
variable_name "UNIVERSAL"
= "="
string
" "\""
string_content "no"
" "\""
variable_assignment
variable_name "TESTING"
= "="
string
" "\""
string_content "no"
" "\""
for_statement (+132 nodes collapsed)
if_statement (+28 nodes collapsed)
if_statement (+26 nodes collapsed)
comment "# version handling"
variable_assignment (+23 nodes collapsed)
variable_assignment
variable_name "VERSION_SUFFIX"
= "="
string
" "\""
" "\""
if_statement (+34 nodes collapsed)
comment "# create directories and cleanup"
command
command_name
word "mkdir"
word "-p"
word "build"
command
command_name
word "rm"
word "-rf"
word "build/*"
variable_assignment
variable_name "NZBGET_ROOT"
= "="
simple_expansion
$ "$"
variable_name "PWD"
for_statement (+1015 nodes collapsed)
command
command_name
word "echo"
string
" "\""
string_content "Done."
" "\""