fastfetch/run.sh

27 lines
414 B
Bash
Raw Permalink Normal View History

2022-09-07 06:37:35 -07:00
#!/usr/bin/env sh
set -e
2021-02-18 22:25:36 +01:00
mkdir -p build/
cd build/
2022-09-19 19:19:09 +02:00
cmake ..
2022-09-22 23:10:34 +02:00
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}"
2022-09-19 19:19:09 +02:00
2021-02-20 20:00:06 +01:00
./fastfetch "$@"