Disable makepkg's debug option by default

This commit is contained in:
Manuel Thalmann 2024-03-07 21:23:55 +01:00
parent 7c541727bc
commit 4411b9cd08
4 changed files with 24 additions and 1 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../Config/pacman/install.sh";
. "../Software/base-devel/install.sh";
. "../Software/yay/install.sh";
# Firmware

View file

@ -0,0 +1,12 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
configFile="/etc/makepkg.conf";
pattern="^\\(OPTIONS=(.*[( ]\\)\\(debug[ )].*)\\)$";
if cat "$configFile" | grep "$pattern" > /dev/null
then
sudo sed -i "/$pattern/s/$pattern/\\1!\\2/" "$configFile"
fi;
popd > /dev/null;

View file

@ -0,0 +1,10 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
sudo pacman --noconfirm -Syu \
base-devel \
;
. "../../Config/base-devel/install.sh";
popd > /dev/null;

View file

@ -1,7 +1,7 @@
#!/bin/bash
if ! command -v yay > /dev/null 2>&1
then
sudo pacman --noconfirm -S --needed git base-devel
sudo pacman --noconfirm -S --needed git
contextRoot="$(mktemp -d)";
git clone https://aur.archlinux.org/yay.git "$contextRoot";