File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44README.md
55CHANGELOG.md
66tags
7- Version.cc
87sorttable.js
9-
108# Directories
119ext
1210wiki
1311build
14- go.sum
12+
13+ # Generated/auto-generated files
14+ src/cc/common/Version.cc
15+ src/go/go.sum
16+ src/go/README.md
17+
18+ # Specific gitignore files
19+ src/cc/common/.gitignore
20+ webui/.gitignore
Original file line number Diff line number Diff line change @@ -23,23 +23,23 @@ if [ $# -ne 1 ]; then
2323 exit 1
2424fi
2525
26- SRC=" ` cd " $1 " > /dev/null && pwd` "
26+ SRC=" $( cd " $1 " > /dev/null && pwd) "
2727
28- MYRAT_VERS=0.16.1
28+ MYRAT_VERS=0.17
2929MYURL=" https://downloads.apache.org/creadur/apache-rat-${MYRAT_VERS} /apache-rat-${MYRAT_VERS} -bin.tar.gz"
3030MYSHAURL=" https://dlcdn.apache.org/creadur/apache-rat-${MYRAT_VERS} /apache-rat-${MYRAT_VERS} -bin.tar.gz.sha512"
31- MYTAR=" ` basename " $MYURL " ` "
32- MYNAME=" ` basename " $MYTAR " -bin.tar.gz` "
31+ MYTAR=$( basename " $MYURL " )
32+ MYNAME=$( basename " $MYTAR " -bin.tar.gz)
3333MYJAR=" $MYNAME /$MYNAME .jar"
3434
3535if [ -f " $MYJAR " ]; then
3636 true
3737else
3838 rm -f " $MYTAR "
3939 if curl --retry 3 -Ss -o " $MYTAR " " $MYURL " ; then
40- MYTARSHA=" ` curl --retry 3 -Ss " $MYSHAURL " \
41- | sed -e ' s/^.*://' | tr -d ' \n' | tr ABCDEF abcdef` "
42- MYACTSHA=" ` openssl sha512 < " $MYTAR " | sed -e ' s/^.*)= *//' ` "
40+ MYTARSHA=$( curl --retry 3 -Ss " $MYSHAURL " |
41+ sed -e ' s/^.*://' | tr -d ' \n' | tr ABCDEF abcdef)
42+ MYACTSHA=$( openssl sha512 < " $MYTAR " | sed -e ' s/^.*)= *//' )
4343 if [ x" $MYACTSHA " = x" $MYTARSHA " ]; then
4444 true
4545 else
6060 fi
6161fi
6262
63- java -jar " $MYJAR " --dir " $SRC " -E " $SRC /.ratignore" \
64- | awk '
65- BEGIN { ret = 1; }
66- /Unknown Licenses/ {
67- if (0 == $1) {
68- ret = 0
69- }
70- print;
71- }
72- /^==/{ print; }
73- END { exit ret; }
74- '
63+ java -jar " $MYJAR " --output-style unapproved-licenses \
64+ --input-exclude-file " $SRC /.ratignore" -- " $SRC "
You can’t perform that action at this time.
0 commit comments