aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2025-06-15 02:39:33 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2025-06-15 02:39:33 +0200
commit633e1ea568b5f9608319bbbe32c8fcdbf195c47d (patch)
tree3e431fc5d3a2ec0b643dbfa33c5b7065e925aa3c /build.sh
parent4f6d8ea12e9f1bf5f66af7a05699e53527dcd304 (diff)
downloaddir_monitor-633e1ea568b5f9608319bbbe32c8fcdbf195c47d.tar.gz
dir_monitor-633e1ea568b5f9608319bbbe32c8fcdbf195c47d.tar.bz2
build.sh: for lazy guys to build in /dev/shm
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..de62eb6
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# I'm a lazy guy
+BDIR="/dev/shm/${PWD##*/}_cmakebuild/"
+mkdir -p bin
+cmake -S . -B "${BDIR}" && ( cd "${BDIR}" ; make ) && find "${BDIR}" -maxdepth 1 -perm /u=x,g=x,o=x -type f -exec cp "{}" bin/ \;
+