#!/bin/bash
# This was done to combine the extensions into one and polish them up.

WORK=/tmp/gtk3549
LIST=/tmp/gtk2.list
LIST1=/tmp/gtk2-locale.list
LOC=/tmp/gtkloc3514


if [ -e "$WORK" ]; then
rm -r "$WORK"
fi
mkdir "$WORK"
if [ -e "$LOC" ]; then
rm -r "$LOC"
fi
mkdir -p "$LOC"/usr/local/share
tar xzvf atk-1.23.5.tcel -C "$WORK"
tar xzvf cairo-1.6.4.tcel -C "$WORK"
tar xzvf gtk-2.12.11.tcel -C "$WORK"
tar xzvf pango-1.21.3.tcel -C "$WORK"
tar xzvf pixman-0.11.8.tcel -C "$WORK"
#cd "$WORK"
#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
mv "$WORK"/usr/local/share/locale "$LOC"/usr/local/share/
cd "$WORK"
find . -not -type d > "$LIST"
tar -T "$LIST" -czvf /home/tc/gtk+-2.12.11.tcel
cd "$LOC"
find . -not -type d > "$LIST1"
tar -T "$LIST1" -czvf /home/tc/gtk+-2.12.11-locales.tce










