diff options
Diffstat (limited to 'run.sh')
| -rwxr-xr-x | run.sh | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +#!/usr/bin/env sh + +set -e + +mkdir -p build/ +cd build/ + +cmake .. + +kernel_name="$(uname -s)" + +case "${kernel_name}" in + "Linux" | "MINGW"*) + cmake_build_args="-j$(nproc)" + ;; + "Darwin" | *"BSD" | "DragonFly") + cmake_build_args="-j$(sysctl -n hw.ncpu)" + ;; + *) + cmake_build_args="" + ;; +esac + +cmake --build . --target fastfetch "${cmake_build_args}" + +./fastfetch "$@" |