wmii/util/link
Kris Maglione 37d553300f Significant changes:
Improved focus semantics.
	/client/*/ctl slay command.
	Find unresponsive clients on kill.
	Draw titlebars of floating clients differently.
	Hack to set window properties of programs:
		wihack command/libwmii_hack.so library.
	Added wmii.rc, on which rc.wmii now depends.
	The usual cleanup.
2008-01-17 17:50:35 -05:00

34 lines
581 B
Bash
Executable File

#!/bin/sh -f
outfile="$1"; shift
bin="$(echo $0 | sed 's,/[^/]*$,,')"
# Derived from Russ Cox's 9l in plan9port.
ofiles=""
args=""
for i
do
case "$i" in
*.[ao]|*.o_pic)
ofiles="$ofiles $i"
;;
*)
args="$args $i"
;;
esac
done
xtmp=/tmp/ld.$$.$USER.out
echo LD "$($bin/cleanname ${BASE}$outfile)"
[ -n "$noisycc" ] && echo $LD -o $outfile $ofiles $LDFLAGS $args
$LD -o $outfile $ofiles $LDFLAGS $args >$xtmp 2>&1
status=$?
sed 's/.*: In function `[^:]*: *//' $xtmp | egrep . |
egrep -v 'is almost always misused|is dangerous, better use'
rm -f $xtmp
exit $status