File: checks

package info (click to toggle)
gnudatalanguage 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,228 kB
  • ctags: 11,455
  • sloc: cpp: 143,352; makefile: 426; sh: 103; ansic: 44; awk: 18; python: 6
file content (15 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# SA: checking if every .pro file is listed in the Makefile.am
test \
  "`fgrep '.pro' Makefile.am | tr '\\\\' ' ' | tr "\n" ' ' | tr -s ' '`" \
  = \
  " `LC_COLLATE=C ls *.pro | tr "\n" ' ' | tr -s ' '`" && exit
echo "----------------------------------------------------------------"
echo "REASON: list of .pro files vs. entries in testsuite/Makefile.am:" 
LC_COLLATE=C ls -1 *.pro \
  | awk '{ print "  " $0 " \\" }' \
  | diff /dev/stdin Makefile.am \
  | fgrep .pro | tr '<' '-' | tr '\\' ' ' | tr -s ' ' 
echo "----------------------------------------------------------------"
exit 1