File: abi

package info (click to toggle)
libverto 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,284 kB
  • sloc: sh: 10,962; ansic: 2,115; makefile: 77
file content (16 lines) | stat: -rwxr-xr-x 386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

echo "Library Path: $LIBVERTO" >&2
echo -n "Hash Command: "
if which md5sum 2>/dev/null; then
  HASHCMD="md5sum"
elif which md5; then
  HASHCMD="md5"
else
  echo "ERROR!"
  exit 1
fi

HASH=`nm -g $LIBVERTO | awk '/^[0-9a-fA-F]+ T verto_/ { print $NF; }' | sed 's|^_||' | sort -u | $HASHCMD | cut -d' ' -f1`
echo "Hash: $HASH"
test $HASH = 6a60a3d64f1bd131ce1b81d002b17921