[kde-freebsd] Still updating kde4 & one utility
Chuck Robey
chuckr at telenix.org
Sun Mar 15 20:33:40 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chuck Robey wrote:
> Hit a new problem, I want to ask help again. Also, look for the utility at the
> end here, I hope some find it useful.
>
Darnit, I left in some stupid leftovers from when I had it requiring a target
file for it's output, here's a cleaner, more correct version (the previous one
worked, but it was confusing). Also, be careful, my mailer rwapped some longish
lines.
> *************** greplib ******************
> #!/bin/sh
> # #1 is targetdir, #2 is first symbol, #3 is 2nd symbol (optional)
> basedir=`pwd`
>
> #functions here
> help ()
> {
> echo "usage: $0 targetdir 1st-symbol 2nd-optional-symbol"
> }
>
> # end of functions, begin real code
>
> flist=`find $1 -type f -name lib\*.so\*`
> if [ $# -le 1 ]
> then
> help
> exit 0
> elif [ $# -eq 2 ]
> then
> for sfile in ${flist}
> do
> lout=`/usr/bin/objdump -T ${sfile} | grep $2 | /usr/bin/c++filt`
>> /dev/null
> if [ -n "${lout}" ]
> then
> echo "symbol found, file ${sfile}, output = ${lout}"
> fi
> done
> elif [ $# -eq 3 ]
> then
> for sfile in ${flist}
> do
> lout=`/usr/bin/objdump -T ${sfile} | grep $2 |grep $3 |
> /usr/bin/c++filt` > /dev/null
> if [ -n "${lout}" ]
> then
> echo "symbol found, file ${sfile}, output = ${lout}"
> fi
> done
> elif [ $# -ge 4 ]
> then
> echo "$0: too many parameters ($#)"
> help
> fi
> exit 0
_______________________________________________
kde-freebsd mailing list
kde-freebsd at kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkm9WBQACgkQz62J6PPcoOnZLQCgpIaYP9h+A+jWyOimLcBe3unz
/LwAn2g0Q4ucgkqu/NKG7SdCZVnLTqmx
=4AuL
-----END PGP SIGNATURE-----
More information about the kde-freebsd
mailing list