File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
ROOT_PATH=" $( git rev-parse --show-toplevel) "
4
4
LIBS_PATH=" ${ROOT_PATH} /contrib"
5
- export LC_ALL=C
6
5
7
- ls -1 -d ${LIBS_PATH} /* / | grep -F -v -- ' -cmake' | sort | while read LIB; do
6
+ ls -1 -d ${LIBS_PATH} /* / | grep -F -v -- ' -cmake' | LC_ALL=C sort | while read LIB; do
8
7
LIB_NAME=$( basename $LIB )
9
8
10
9
LIB_LICENSE=$(
11
- find " $LIB " -type f -and ' (' -iname ' LICENSE*' -or -iname ' COPYING*' -or -iname ' COPYRIGHT*' ' )' -and -not ' (' -iname ' *.html' -or -iname ' *.htm' -or -iname ' *.rtf' -or -name ' *.cpp' -or -name ' *.h' -or -iname ' *.json' ' )' -printf " %d\t%p\n" |
12
- sort | awk '
10
+ LC_ALL=C find " $LIB " -type f -and ' (' -iname ' LICENSE*' -or -iname ' COPYING*' -or -iname ' COPYRIGHT*' ' )' -and -not ' (' -iname ' *.html' -or -iname ' *.htm' -or -iname ' *.rtf' -or -name ' *.cpp' -or -name ' *.h' -or -iname ' *.json' ' )' -printf " %d\t%p\n" |
11
+ LC_ALL=C sort | LC_ALL=C awk '
13
12
BEGIN { IGNORECASE=1; min_depth = 0 }
14
13
/LICENSE/ { if (!min_depth || $1 <= min_depth) { min_depth = $1; license = $2 } }
15
14
/COPY/ { if (!min_depth || $1 <= min_depth) { min_depth = $1; copying = $2 } }
You can’t perform that action at this time.
0 commit comments