File: spdxcheck-test.sh

package info (click to toggle)
linux 6.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,614,900 kB
  • sloc: ansic: 25,165,432; asm: 268,389; sh: 129,748; python: 56,278; makefile: 53,946; perl: 37,949; cpp: 5,664; yacc: 4,957; lex: 2,834; awk: 1,148; ruby: 25; sed: 5
file content (10 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (43)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# run check on a text and a binary file
for FILE in Makefile Documentation/images/logo.gif; do
	python3 scripts/spdxcheck.py $FILE
	python3 scripts/spdxcheck.py - < $FILE
done

# run check on complete tree to catch any other issues
python3 scripts/spdxcheck.py > /dev/null