#!/bin/bash

# cflags and such are standard and exported on my box by bashrc.

tar xjvf pygtk-2.14.1.tar.bz2
cd pygtk-2.14.1
./configure --prefix=/usr/local
make 
make install DESTDIR=/mnt/hda2/python-update/pygtk/pkg

cd /mnt/hda2/python-update/pygtk/pkg

find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null



