File: validate_symvers.sh

package info (click to toggle)
efl 1.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 369,520 kB
  • sloc: ansic: 1,078,016; cpp: 45,806; cs: 21,172; asm: 3,739; python: 3,733; javascript: 3,069; objc: 1,514; sh: 771; pascal: 431; xml: 349; makefile: 88
file content (20 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e

# ensures that the eo symbol versions match the upstream part of the
# version from the current changelog.  See README.source for more
# details on eolian-generated symbols.

FAIL=0
CHLOGVER=$(dpkg-parsechangelog -S Version | cut -f 1 -d -)

for i in debian/*.symbols; do
    echo -n "Checking eo symbol versions in $i..."
    if awk '/^ .*~eo$/ {print $NF}' $i | grep -v ^$CHLOGVER > /dev/null; then
	FAIL=1
	echo fail
    else
	echo ok
    fi
done

exit $FAIL