mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
bootstrap.sh: configurable prefix path
This commit is contained in:
parent
2720711550
commit
55a3dea992
@ -19,15 +19,18 @@ if [ ! -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" ]; then
|
|||||||
[[ $REPLY =~ ^[Yy]$ ]]
|
[[ $REPLY =~ ^[Yy]$ ]]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# accept a prefix value as: prefix=/path ./bootstrap.sh
|
||||||
|
: ${prefix:=/usr}
|
||||||
|
|
||||||
# Echo the rest so it's obvious
|
# Echo the rest so it's obvious
|
||||||
set -x
|
set -x
|
||||||
meson --prefix=/usr build -Dwith-systemd-user-unit-dir=/etc/systemd/user
|
meson --prefix=$prefix build -Dwith-systemd-user-unit-dir=/etc/systemd/user
|
||||||
cd build
|
cd build
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
# Verify user wants to install
|
# Verify user wants to install
|
||||||
set +x
|
set +x
|
||||||
read -p "Install to /usr? [Yy] " -r
|
read -p "Install to $prefix? [Yy] " -r
|
||||||
[[ $REPLY =~ ^[Yy]$ ]]
|
[[ $REPLY =~ ^[Yy]$ ]]
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user