Build legacy drivers and publish per-OS packages with web activation and DEB
This commit is contained in:
13
cross/install-tools.sh
Executable file
13
cross/install-tools.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Debian/Ubuntu. apt verifies its signed repository metadata.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
mode=${1:---all}
|
||||
case "$mode" in --all|--apt-only|--watcom-only) ;; *) echo 'Usage: cross/install-tools.sh [--all|--apt-only|--watcom-only]' >&2; exit 2;; esac
|
||||
if [[ $mode != --watcom-only ]]; then
|
||||
command -v apt-get >/dev/null || { echo 'Install equivalent packages manually on non-Debian systems.' >&2; exit 1; }
|
||||
elevate=(); if (( EUID != 0 )); then elevate=(sudo); fi
|
||||
"${elevate[@]}" apt-get update
|
||||
"${elevate[@]}" apt-get install -y build-essential cmake git pkg-config curl ca-certificates jq xz-utils p7zip-full cabextract python3 clang lld llvm binutils gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-i686-dev
|
||||
fi
|
||||
if [[ $mode != --apt-only ]]; then ./cross/fetch-watcom.sh; fi
|
||||
Reference in New Issue
Block a user