#!/bin/sh export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS=$CFLAGS" -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig tar -jxf dia-0.96.1.tar.bz2 cd dia-0.96.1 ./configure --with-python --with-xslt-prefix=/usr/local/lib --enable-db2html sudo ln -s /usr/local/bin/python /usr/bin make touch ../mark sudo make install cd .. find /usr/local/ -newer mark -not -type d > filelist tar -czf dia.tcel -T filelist tar -zxf dia.tcel rm -f dia.tcel rm -rf usr/local/man* tar -czf dia.tcel usr advdef -z4 dia.tcel md5sum dia.tcel > dia.tcel.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../dia.tcel cd .. mkfs.cramfs $TCZDIR dia.tczl md5sum dia.tczl > dia.tczl.md5.txt rm -rf $TCZDIR rm -rf dia-0.96.1 rm -f /usr/local/bin/python