15c48b108SAl Viro#!/bin/sh 25c48b108SAl Vironm="$1" 35c48b108SAl Virofile="$2" 45c48b108SAl Viro$nm "$file" | grep '^ *U' > /dev/null 2>&1 55c48b108SAl Viroif [ $? -eq 1 ]; then 65c48b108SAl Viro exit 0 75c48b108SAl Viroelse 85c48b108SAl Viro echo "$file: undefined symbols found" >&2 95c48b108SAl Viro exit 1 105c48b108SAl Virofi 11