瀏覽代碼

fix scan_printf script in linux bash

Urs Hanselmann 2 年之前
父節點
當前提交
1520aff680
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      scripts/scan_printf.sh

+ 2 - 8
scripts/scan_printf.sh

@@ -1,14 +1,8 @@
-#!/bin/sh
-
-PATHS="include code"
-FILTER_INCLUDE='\*.{c,cpp,h}'
-FILTER_EXCLUDE="{include/assimp/Compiler/pstdint.h,code/AssetLib/M3D/m3d.h}"
-
-PATTERN='^\s*printf'
+#!/bin/bash
 
 
 grep \
 grep \
   --include=\*.{c,cpp,h} \
   --include=\*.{c,cpp,h} \
-  --exclude={include/assimp/Compiler/pstdint.h,code/AssetLib/M3D/m3d.h} \
+  --exclude={pstdint,m3d}.h \
   -rnw include code \
   -rnw include code \
   -e '^\s*printf'
   -e '^\s*printf'