File: show_deprecated.sh

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (15 lines) | stat: -rwxr-xr-x 516 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
file=$1
test -z "$file" && file=MAKE.OUTPUT

grep -e "is deprecated" $file |sed 's/^.*\/\([-_a-zA-Z0-9]*.h\):[0-9]*)$/\1/g'|sort|uniq -c |sort -n 
echo "";
echo "";

grep -e "is deprecated" $file  |sed 's/^.*warning: .\(.*\). is deprecated.*\/\([-_a-zA-Z0-9]*.h\):[0-9]*)$/\2 - Method: \1/g'|sort|uniq -c |sort -n

echo "---------------------" 
echo "all deprecated method:"
grep -e "is deprecated" $file |wc 
echo "without deprecated methods in generated files:"
grep -e "is deprecated" $file |grep -v /build/ |wc