Skip to content

Commit 27e532e

Browse files
committed
external_deps: reformat and reword the help message
Print to stderr. Reformat the help message. Replace dynamic tabs with spaces. Also simplify an overengineered madness. Also we don't do zip anymore, tarball for everyone for a long time.
1 parent 66a011f commit 27e532e

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

external_deps/build.sh

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,63 +1471,64 @@ all_windows_platforms='windows-amd64-mingw windows-amd64-msvc windows-i686-mingw
14711471
all_macos_platforms='macos-amd64-default'
14721472
all_platforms="${all_linux_platforms} ${all_windows_platforms} ${all_macos_platforms}"
14731473

1474-
errorHelp() {
1475-
sed -e 's/\\t/'$'\t''/g' <<-EOF
1476-
usage: $(basename "${BASH_SOURCE[0]}") [OPTION] <PLATFORM> <PACKAGE[S]...>
1474+
printHelp() {
1475+
# Please align to 4-space tabs.
1476+
cat >&2 <<-EOF
1477+
usage: $(basename "${BASH_SOURCE[0]}") [OPTION] <PLATFORM> <PACKAGE(S)...>
14771478
14781479
Script to build dependencies for platforms which do not provide them
14791480
14801481
Options:
1481-
\t--download-only only download source packages, do not build them
1482-
\t--prefer-ours attempt to download from unvanquished.net first
1482+
--download-only only download source packages, do not build them
1483+
--prefer-ours attempt to download from unvanquished.net first
14831484
14841485
Platforms:
1485-
\t${all_platforms}
1486+
${all_platforms}
14861487
14871488
Virtual platforms:
1488-
\tlinux — ${all_linux_platforms}
1489-
\twindows — ${all_windows_platforms}
1490-
\tmacos — ${all_macos_platforms}
1491-
\tall — linux windows macos
1489+
linux ${all_linux_platforms}
1490+
windows ${all_windows_platforms}
1491+
macos ${all_macos_platforms}
1492+
all linux windows macos
14921493
14931494
Packages:
1494-
\tpkgconfig nasm zlib gmp nettle curl sdl3 glew png jpeg webp openal ogg vorbis opus opusfile naclsdk wasisdk wasmtime
1495+
pkgconfig nasm zlib gmp nettle curl sdl3 glew png jpeg webp openal ogg vorbis opus opusfile naclsdk wasisdk wasmtime
14951496
14961497
Virtual packages:
1497-
\tbase — build packages for pre-built binaries to be downloaded when building the game
1498-
\tall — build all supported packages that can possibly be involved in building the game
1499-
\tinstall — create a stripped down version of the built packages that CMake can use
1500-
\tpackage — create a zip/tarball of the dependencies so they can be distributed
1501-
\twipe — remove products of build process, excepting download cache but INCLUDING installed files. Must be last
1498+
base build packages for pre-built binaries to be downloaded when building the game
1499+
all build all supported packages that can possibly be involved in building the game
1500+
install create a stripped down version of the built packages that CMake can use
1501+
package create a tarball of the dependencies so they can be distributed
1502+
wipe remove products of build process, excepting download cache but INCLUDING installed files. Must be last
15021503
15031504
Packages required for each platform:
15041505
15051506
windows-amd64-msvc:
15061507
windows-i686-msvc:
1507-
\tbase: ${base_windows_amd64_msvc_packages}
1508-
\tall: same
1508+
base ${base_windows_amd64_msvc_packages}
1509+
all same
15091510
15101511
windows-amd64-mingw:
15111512
windows-i686-mingw:
1512-
\tbase: ${base_windows_amd64_mingw_packages}
1513-
\tall: same
1513+
base ${base_windows_amd64_mingw_packages}
1514+
all same
15141515
15151516
macos-amd64-default:
1516-
\tbase: ${base_macos_amd64_default_packages}
1517-
\tall: same
1517+
base ${base_macos_amd64_default_packages}
1518+
all same
15181519
15191520
linux-amd64-default:
1520-
\tbase: ${base_linux_amd64_default_packages}
1521-
\tall: ${all_linux_amd64_default_packages}
1521+
base ${base_linux_amd64_default_packages}
1522+
all ${all_linux_amd64_default_packages}
15221523
15231524
linux-i686-default:
1524-
\tbase: ${base_linux_i686_default_packages}
1525-
\tall: ${all_linux_i686_default_packages}
1525+
base ${base_linux_i686_default_packages}
1526+
all ${all_linux_i686_default_packages}
15261527
15271528
linux-arm64-default:
15281529
linux-armhf-default:
1529-
\tbase: ${base_linux_arm64_default_packages}
1530-
\tall: ${all_linux_arm64_default_packages}
1530+
base ${base_linux_arm64_default_packages}
1531+
all ${all_linux_arm64_default_packages}
15311532
15321533
EOF
15331534
false

0 commit comments

Comments
 (0)