vnet: store hw interface speed in kbps instead of using flags
[vpp.git] / build-root / scripts / checkstyle.sh
index 6b760b3..f2f118c 100755 (executable)
@@ -1,5 +1,18 @@
 #!/bin/bash
 
+# Copyright (c) 2015 Cisco and/or its affiliates.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 VPP_DIR=`dirname $0`/../../
 EXIT_CODE=0
 FIX="0"
@@ -39,8 +52,8 @@ indent --version
 
 # Check to make sure we have clang-format.  Exit if we don't with an error message, but
 # don't *fail*.
-command -v clang-format > /dev/null
 HAVE_CLANG_FORMAT=0
+command -v clang-format > /dev/null
 if [ $? != 0 ]; then
     echo "Could not find command \"clang-format\". Checking C++ files will cause abort"
 else