summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drw.obin14128 -> 0 bytes
-rwxr-xr-xdwmbin80752 -> 0 bytes
-rw-r--r--dwm.obin73296 -> 0 bytes
-rwxr-xr-x[-rw-r--r--]make.sh16
-rw-r--r--util.obin2296 -> 0 bytes
5 files changed, 13 insertions, 3 deletions
diff --git a/drw.o b/drw.o
deleted file mode 100644
index 34857e9..0000000
--- a/drw.o
+++ /dev/null
Binary files differ
diff --git a/dwm b/dwm
deleted file mode 100755
index 95ac615..0000000
--- a/dwm
+++ /dev/null
Binary files differ
diff --git a/dwm.o b/dwm.o
deleted file mode 100644
index f4e3d61..0000000
--- a/dwm.o
+++ /dev/null
Binary files differ
diff --git a/make.sh b/make.sh
index 0d133cd..a5ffa69 100644..100755
--- a/make.sh
+++ b/make.sh
@@ -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"
diff --git a/util.o b/util.o
deleted file mode 100644
index 867d783..0000000
--- a/util.o
+++ /dev/null
Binary files differ