#!/bin/bash

export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"

[ -d /mnt/hda2/ntfs-3g/ntfs-3g-pkg ] && rm -r ntfs-3g-pkg
[ -d /mnt/hda2/ntfs-3g/ntfs-3g-2009.4.4 ] && rm -r ntfs-3g-2009.4.4
tar xzvf ntfs-3g-2009.4.4.tgz -C /mnt/hda2/ntfs-3g
cd /mnt/hda2/ntfs-3g/ntfs-3g-2009.4.4
./configure --prefix=/usr/local/
make 
make install DESTDIR=/mnt/hda2/ntfs-3g/ntfs-3g-pkg
