#!/bin/bash

destdir=/usr/share/fonts/webcore
tmpdir=$destdir/tmp
mkdir $tmpdir

pushd /usr/share/fonts/webcore-distrib
for i in andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe verdan32.exe wd97vwr32.exe webdin32.exe
do
    cabextract -q $i -d $tmpdir
done
popd

cp $tmpdir/*.ttf $tmpdir/*.TTF $destdir/
rm -rf $tmpdir
