#!/usr/bin/env perl -w

# Copyright (C) 2008-2009, Sebastian Riedel.

use strict;
use warnings;

use Cwd 'getcwd';
use File::Spec;
use FindBin;

# Dist
use lib "$FindBin::Bin/lib";
use lib "$FindBin::Bin/../lib";

# App
use lib join '/', File::Spec->splitdir(getcwd), 'lib';

# Check if Mojo is installed
eval 'use Mojolicious::Scripts';
die <<EOF if $@;
It looks like you don't have the Mojo Framework installed.
Please visit http://mojolicious.org for detailed installation instructions.

EOF

# Start the script system
my $scripts = Mojolicious::Scripts->new;
$scripts->run(@ARGV);
