quantum init

This commit is contained in:
zhaoxiaomeng
2018-01-04 13:38:57 +08:00
committed by Simon
parent d11f845fde
commit 53af3b51ae
2361 changed files with 387455 additions and 144458 deletions

23
vendor/liboqs/.travis/style-check.sh vendored Executable file
View 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;