aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2021-11-16 15:19:53 -0700
committerDerek Stevens <nilix@nilfm.cc>2021-11-16 15:19:53 -0700
commit30a50ad90eaed4080d96b822bf0d67bff6a1137a (patch)
tree74cdb84a8272a20051b1476bd17d6e4abbd368b1
parentec51fdf5c9adf3b75986fe61ef35d221c34d8679 (diff)
dont quit build if clang-format not present
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 81d6abd..7ad2712 100755
--- a/build.sh
+++ b/build.sh
@@ -4,7 +4,9 @@ if [ ! -e config.h ]; then
cp config.def.h config.h
fi
-clang-format -i ./*.c ./*.h ./*/*.c ./*/*.h
+if which clang-format > /dev/null; then
+ clang-format -i ./*.c ./*.h ./*/*.c ./*/*.h
+fi
mk clean
mk o.rio