#!@SHELL@ # # Copyright © 2011 Nick Bowler # # Determine the list of exported symbols from archives or (libtool) object # files. # # License WTFPL2: Do What The Fuck You Want To Public License, version 2. # This is free software: you are free to do what the fuck you want to. # There is NO WARRANTY, to the extent permitted by law. OBJS= while test $# -gt 0 do case $1 in /*) arg=$1 ;; *) arg=./$1 ;; esac if expr "$arg" : '.*\.lo' >/dev/null; then non_pic_object= pic_object= . "$arg" dir=`expr "$arg" : '\(.*\)/'` if test x"$pic_object" != x"none"; then OBJS="$OBJS $dir/$pic_object" fi if test x"$non_pic_object" != x"none"; then OBJS="$OBJS $dir/$non_pic_object" fi else OBJS="$OBJS $arg" fi shift done set x $OBJS; shift case $# in 0) : ;; *) @NM@ $OBJS | @GLOBAL_SYMBOL_PIPE@ | @SED@ 's/^.* //' | sort | uniq ;; esac