mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-09-27 07:43:47 +08:00
quantum init
This commit is contained in:
23
vendor/liboqs/.travis/style-check.sh
vendored
Executable file
23
vendor/liboqs/.travis/style-check.sh
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -x "$(which clang-format-3.9)" ]; then
|
||||
# If clang-format is not version -3.9, just use clang-format
|
||||
CLANGFORMAT=clang-format make prettyprint
|
||||
else
|
||||
CLANGFORMAT=clang-format-3.9 make prettyprint
|
||||
fi;
|
||||
|
||||
modified=$(git status -s)
|
||||
|
||||
if [ "$modified" ]; then
|
||||
tput setaf 1;
|
||||
echo "Code does not adhere to the project standards. Run \"make prettyprint\".";
|
||||
tput sgr 0;
|
||||
git status -s
|
||||
exit 1;
|
||||
else
|
||||
tput setaf 2;
|
||||
echo "Code adheres to the project standards (prettyprint).";
|
||||
tput sgr 0;
|
||||
exit 0;
|
||||
fi;
|
||||
Reference in New Issue
Block a user