#!/usr/bin/env php
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$mime_types_text = file_get_contents(dirname(__DIR__) . '/mime.types');

$generator = new \Mimey\MimeMappingGenerator($mime_types_text);
$mapping_code = $generator->generateMappingCode();

file_put_contents(dirname(__DIR__) . '/mime.types.php', $mapping_code);
