File: find-unused-data.sh

package info (click to toggle)
libreoffice 1%3A4.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,684,980 kB
  • sloc: cpp: 4,023,702; java: 364,016; xml: 216,714; ansic: 74,602; perl: 34,443; python: 30,231; yacc: 12,179; makefile: 8,979; objc: 8,923; sh: 8,742; cs: 6,594; lex: 2,218; asm: 1,472; pascal: 925; awk: 807; php: 104; csh: 40; 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: