mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
Install clang-format if not installed
This commit is contained in:
parent
9557b2b82e
commit
e3f8f6a981
@ -1,3 +1,9 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -v
|
||||
|
||||
if ! [ -x "$( command -v clang-format )" ]
|
||||
then
|
||||
mkdir -p $HOME/.local
|
||||
wget -O- http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz | tar --xz -xf - -C $HOME/.local --strip 1
|
||||
fi
|
||||
|
||||
find ./src \( -path ./src/3rd_party -o -path ./src/tests -o -path ./src/models/experimental \) -prune -o -iname *.h -o -iname *.cpp -o -iname *.cu | xargs clang-format -i
|
||||
|
Loading…
Reference in New Issue
Block a user