#!/bin/sh
# -*- Mode: sh -*-
# Copyright (C) 2000 by Chmouel Boudjnah <chmouel@mandrakesoft.com>,
# MandrakeSoft
# Redistribution of this file is permitted under the terms of the GNU 
# Public License (GPL)

true_binary=/usr/bin/wine.bin
default=/etc/wine/wine.reg
configurator=/usr/share/wine/wine-config
winedir=${HOME}/.wine/

if [ ! -d ${winedir} ];then
    mkdir -p ${winedir}
    cp ${default} ${winedir}/config
    if [ -x /usr/bin/perl ];then
	perl ${configurator} ${winedir}/config || :
    fi
fi

${true_binary} "$@"