File tree 1 file changed +4
-4
lines changed
1 file changed +4
-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
- LC_ALL=C
5
+ export LC_ALL=C
6
6
7
- ls -1 -d ${LIBS_PATH} /* / | grep -F -v -- ' -cmake' | LC_ALL=C sort | while read LIB; do
7
+ ls -1 -d ${LIBS_PATH} /* / | grep -F -v -- ' -cmake' | sort | while read LIB; do
8
8
LIB_NAME=$( basename $LIB )
9
9
10
10
LIB_LICENSE=$(
11
- 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" |
12
- awk '
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 '
13
13
BEGIN { IGNORECASE=1; min_depth = 0 }
14
14
/LICENSE/ { if (!min_depth || $1 <= min_depth) { min_depth = $1; license = $2 } }
15
15
/COPY/ { if (!min_depth || $1 <= min_depth) { min_depth = $1; copying = $2 } }
You can’t perform that action at this time.
0 commit comments