detect and use cores

This commit is contained in:
Luke Smith 2019-01-12 19:43:16 -05:00
parent 198a179792
commit 75763668cf
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -177,6 +177,9 @@ newperms "%wheel ALL=(ALL) NOPASSWD: ALL"
# Make pacman and yay colorful because why not.
sed -i "s/^#Color/Color/g" /etc/pacman.conf
# Use all cores for compilation.
sed -i "s/-j2/-j$(nproc)/;s/^#MAKEFLAGS/MAKEFLAGS/" /etc/makepkg.conf
manualinstall $aurhelper || error "Failed to install AUR helper."
# The command that does all the installing. Reads the progs.csv file and