mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 07:05:46 +03:00
416bea727e
In steamrt-bootstrap,sh + Used quotes to prevent word splitting SC2046 + Used $() notation rather than legacy backtick SC2006 + which is non-standard. 'command -v' is builtin SC2230 In configure.sh + Assigned to local variable separately to avoid masking return values SC2155 + Used to quote to prevent glob matching SC2053 + Used -z command rather than ! -n SC2236 + Fixed SC2129 which would have a minor performance gain of avoiding constantly opening and closing the makefile.
24 lines
1.0 KiB
Bash
Executable File
24 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Expect to be setting up a container or chroot
|
|
if [[ $(stat -c %d:%i /) != $(stat -c %d:%i /proc/1/root/.) ]]; then
|
|
echo "Running in chroot environment. Continuing..."
|
|
elif [[ -f /.dockerenv ]]; then
|
|
echo "Running in docker environment. Continuing..."
|
|
else
|
|
echo "Script must be running in a chroot environment. Exiting..."
|
|
exit 1
|
|
fi
|
|
|
|
set -xe
|
|
|
|
apt-get install -y gcc-5 g++-5 g++-5-multilib flex bison libosmesa6-dev libpcap-dev \
|
|
libhal-dev libsane-dev libv4l-dev libgphoto2-2-dev libcapi20-dev \
|
|
libgsm1-dev libmpg123-dev libvulkan-dev libxslt1-dev nasm yasm ccache
|
|
update-alternatives --install "$(command -v gcc)" gcc "$(command -v gcc-5)" 50
|
|
update-alternatives --set gcc "$(command -v gcc-5)"
|
|
update-alternatives --install "$(command -v g++)" g++ "$(command -v g++-5)" 50
|
|
update-alternatives --set g++ "$(command -v g++-5)"
|
|
update-alternatives --install "$(command -v cpp)" cpp-bin "$(command -v cpp-5)" 50
|
|
update-alternatives --set cpp-bin "$(command -v cpp-5)"
|