diff options
author | schizoid <schizoidparty@aol.com> | 2024-12-06 14:54:28 -0500 |
---|---|---|
committer | schizoid <schizoidparty@aol.com> | 2024-12-06 14:54:28 -0500 |
commit | 3aafbdf0c13f40636938685b1ed3641dca5ee26c (patch) | |
tree | 0b30820988d96b0a55fde20205f5734653c39c87 | |
parent | 3ed68b62088dedfb4e7bcd43b953535966a916fe (diff) |
Updated make.sh script for both Gnu/Linux and BSD
-rw-r--r-- | drw.o | bin | 14128 -> 0 bytes | |||
-rwxr-xr-x | dwm | bin | 80752 -> 0 bytes | |||
-rw-r--r-- | dwm.o | bin | 73296 -> 0 bytes | |||
-rwxr-xr-x[-rw-r--r--] | make.sh | 16 | ||||
-rw-r--r-- | util.o | bin | 2296 -> 0 bytes |
5 files changed, 13 insertions, 3 deletions
Binary files differBinary files differBinary files differ @@ -1,4 +1,14 @@ -#!/usr/bin/zsh +#!/bin/sh -rm config.h -make install +if command -v nproc >/dev/null 2>&1; then + cores=$(nproc) +elif command -v sysctl >/dev/null 2>&1; then + cores=$(sysctl -n hw.ncpu) +else + echo "Error: Unable to determine the number of CPU cores." + exit 1 +fi + +make clean; +yes | rm config.h; +make -j"$cores" && echo "Now run "doas make install" to install DWM" || echo "Error" Binary files differ |