#!/bin/sh
# Run this from the root of your qtruby source tree (version 1.0.9)
# Works For MeTM on an iBook G4 running Tiger that was upgraded from Panther.
# hans@fugal.net

make -f Makefile.cvs
./configure --enable-mac
cd smoke/qt
perl generate.pl
qmake -makefile
sed -i '' '1360d' x_7.cpp
make
sudo ln -s /usr/lib/libsmoke* /Developer/qt/lib
cd ../../qtruby/rubylib/qtruby
ruby extconf.rb --with-qt-dir=$QTDIR --with-smoke-dir=/usr \
    --with-smoke-include=../../../smoke
make
sudo make install
cd ../designer/rbuic
qmake -makefile
sudo make
cd ../uilib
ruby extconf.rb --with-qt-dir=$QTDIR --with-qtruby-include=../../qtruby
make
sudo make install
