#!/usr/bin/perl -w # # # rhimport # # Copyright (C) 2009 Christian Pointner # # This file is part of rhimport. # # rhimport is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # any later version. # # rhimport is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with rhimport. If not, see . # use strict; use Getopt::Long; use DBI; use Gtk2; use Gtk2::GladeXML; use lib '/usr/local/share/rhimport/'; use rhimport; my $glade_file = '/usr/local/share/rhimport/rhimport.glade'; my $DBHOST = "airplay"; my $DBUSER = "rivendell"; my $DBPW = "lldriven"; my $DB = "rivendell"; my $HELP = 0; my $FILE = ""; my $POOL = 0; my $KEEPCARTS = 0; my $DROPBOX = ""; my $LISTALLOWED = 0; binmode(STDIN, ":utf8"); binmode(STDOUT, ":utf8"); binmode(STDERR, ":utf8"); GetOptions ("help!" => \$HELP, "file=s" => \$FILE, "pool!" => \$POOL, "keep-carts!" => \$KEEPCARTS, "dropbox=s" => \$DROPBOX, "list-allowed!" => \$LISTALLOWED, ) or die(); if($HELP) { print << "EOF"; usage: $0 --file