#!/bin/sh
#141013 fix compile on quirky unicorn.

rm -f network_tray
rm -f network_tray.pot

cp -f networkblank.xpm /usr/local/lib/X11/mini-icons/
cp -f networkboth.xpm /usr/local/lib/X11/mini-icons/
cp -f networkdead.xpm /usr/local/lib/X11/mini-icons/
cp -f networkin.xpm /usr/local/lib/X11/mini-icons/
cp -f networkout.xpm /usr/local/lib/X11/mini-icons/

sync
gcc network_tray.c -o network_tray `pkg-config --cflags --libs gtk+-2.0`

xgettext --keyword="_" network_tray.c  -o network_tray.pot

sync
strip --strip-unneeded network_tray

echo 'done'
echo 'the images were copied to /usr/local/lib/X11/mini-icons/network*.xpm,'
echo 'be sure to put them in final pet package.'
