File: find-unused-data.sh

package info (click to toggle)
libreoffice 1%3A5.2.7-1%2Bdeb9u11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,603,628 kB
  • sloc: cpp: 4,054,182; java: 289,998; xml: 272,393; ansic: 48,279; python: 37,075; perl: 33,686; yacc: 12,078; sh: 9,840; makefile: 8,917; cs: 6,600; objc: 2,388; lex: 2,178; asm: 1,348; awk: 882; pascal: 876; php: 79; csh: 20; sed: 5
file content (11 lines) | stat: -rwxr-xr-x 202 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

for i in */data/*
do
    file=$(basename $i)
    if ! git grep -q $file; then
        echo "WARNING: $i is not used, write a testcase for it!"
    fi
done

# vi:set shiftwidth=4 expandtab: