b72231eb70845 (Thierry Reding 2018-12-28 00:31:32 -0800 1) #!/bin/sh
b72231eb70845 (Thierry Reding 2018-12-28 00:31:32 -0800 2)
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 3) # run check on a text and a binary file
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 4) for FILE in Makefile Documentation/logo.gif; do
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 5) python3 scripts/spdxcheck.py $FILE
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 6) python3 scripts/spdxcheck.py - < $FILE
b72231eb70845 (Thierry Reding 2018-12-28 00:31:32 -0800 7) done
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 8)
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 9) # run check on complete tree to catch any other issues
03b1292d1c0ea (Nishanth Menon 2021-07-07 16:06:00 -0500 10) python3 scripts/spdxcheck.py > /dev/null