File: check-data.sh

package info (click to toggle)
eazel-engine 0.3-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,236 kB
  • ctags: 404
  • sloc: sh: 9,807; ansic: 4,342; makefile: 250; perl: 76
file content (19 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# script to check that all image files are listed in the correct
# Makefile.am

images=`grep \.png gtkrc.in | sed -e 's/^.*image *= *"\(.*\)".*$/\1/'`

missing=no

for f in $images; do
  fgrep $f data/Makefile.am >/dev/null \
      || { missing=yes; echo "data/Makefile.am is missing $f"; }
done

if [ $missing != no ]; then
  exit 1
else
  exit 0
fi