⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check_all.sh

📁 Datamatrix二维码库和测试程序,运行于linux,仔细研究可以很容易转化成VC程序,有这就没必要化钱买个控件了,本人libdmtx-0.3版本转化过,的确可行,现在把找到该版本的libdmtx
💻 SH
字号:
#!/bin/shfunction RunTest(){   SCRIPT="$1"   SCRIPT_TYPE=$(echo "$SCRIPT" | awk -F'.' '{print $NF}')   echo "   $SCRIPT"   ERRORS=0   for dir in $(find "$LIBDMTX" -type d); do      if [[ "$dir" != "$LIBDMTX" &&            "$dir" != "$LIBDMTX/util/dmtxread" &&            "$dir" != "$LIBDMTX/util/dmtxwrite" &&            "$dir" != "$LIBDMTX/test/gltest" &&            "$dir" != "$LIBDMTX/test/simpletest" &&            "$dir" != "$LIBDMTX/test/script" ]]; then         continue      fi      for file in $(find $dir -maxdepth 1 -name "*.[ch]" -o -name "*.py"); do         if [[ "$(basename $file)" = "config.h" ]]; then            continue         fi         if [[ "$SCRIPT_TYPE" = "sh" ]]; then            $LIBDMTX/script/$SCRIPT $file            ERRORS=$(( ERRORS + $? ))         elif [[ "$SCRIPT_TYPE" = "pl" ]]; then            PERL=$(which perl)            if [[ $? -ne 0 ]]; then               echo "No perl interpreter found.  Skipping $SCRIPT test."            else               $PERL $LIBDMTX/script/$SCRIPT $file               ERRORS=$(( ERRORS + $? ))            fi         fi      done   done   return $ERRORS}LIBDMTX="$1"if [[ -z "$LIBDMTX" || ! -d "$LIBDMTX/script" ]]; then   echo "Must provide valid LIBDMTX directory"   exit 1fiRunTest check_comments.sh || exit 1RunTest check_copyright.sh || exit 1RunTest check_keyword.sh || exit 1RunTest check_license.sh || exit 1RunTest check_spacing.sh || exit 1RunTest check_whitespace.sh || exit 1RunTest check_headers.pl || exit 1RunTest check_todo.shexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -