718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
33 lines
939 B
Bash
Executable File
33 lines
939 B
Bash
Executable File
#!/bin/bash
|
|
|
|
##################################################################
|
|
#
|
|
# This script will clear the executable flag on
|
|
# the specified library and then check it has
|
|
# been cleared as a separate operation.
|
|
#
|
|
# $1 - The absolute path to the OpenCV native library.
|
|
#
|
|
# Returns:
|
|
# 0 - The executable flag has been cleared
|
|
# 1 - The executable flag could NOT be cleared (failure).
|
|
#
|
|
# Kerry Billingham <contact (at) avionicengineers (d0t) com>
|
|
# 11 March 2017
|
|
#
|
|
##################################################################
|
|
red=$'\e[1;31m'
|
|
green=$'\e[1;32m'
|
|
end=$'\e[0m'
|
|
echo "${green}[INFO] Checking that the native library executable stack flag is NOT set.${end}"
|
|
BINARY=execstack
|
|
$BINARY --help > /dev/null || BINARY=/usr/sbin/execstack
|
|
$BINARY -c $1
|
|
$BINARY -q $1 | grep -o ^-
|
|
if [ $? -ne 0 ]; then
|
|
echo
|
|
echo "${red}[ERROR] The Executable Flag could not be cleared on the library $1.${end}"
|
|
exit 1
|
|
fi
|
|
exit 0
|