From e6035cca7cf6f23b3965f6238e41103838c48d3b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 22 Jul 2015 15:20:09 +0200 Subject: removed old stuff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd51438 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +include.mk diff --git a/Makefile b/Makefile index d4c76c8..9419904 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,6 @@ install-bin: $(INSTALL) -m 755 $(EXECUTABLE)-zf $(DESTDIR)$(BINDIR) $(INSTALL) -m 755 $(EXECUTABLE)-zffe $(DESTDIR)$(BINDIR) $(INSTALL) -m 755 $(EXECUTABLE)-zfw $(DESTDIR)$(BINDIR) - $(INSTALL) -m 755 $(EXECUTABLE)-create-id $(DESTDIR)$(BINDIR) @sed s#/usr/local/share/rhimport/#$(SHAREDIR)/$(EXECUTABLE)/#g -i $(DESTDIR)$(BINDIR)/$(EXECUTABLE) @sed s#/usr/local/share/rhimport/#$(SHAREDIR)/$(EXECUTABLE)/#g -i $(DESTDIR)$(BINDIR)/$(EXECUTABLE)-btl @sed s#/usr/local/share/rhimport/#$(SHAREDIR)/$(EXECUTABLE)/#g -i $(DESTDIR)$(BINDIR)/$(EXECUTABLE)-dn @@ -83,8 +82,6 @@ install-bin: install-share: $(INSTALL) -d $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE) $(INSTALL) -m 644 rhimport.pm $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE) - $(INSTALL) -m 644 gui_callbacks.pm $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE) - $(INSTALL) -m 644 rhimport.glade $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE) uninstall: remove @@ -109,7 +106,6 @@ remove-bin: rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)-zf rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)-zffe rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)-zfw - rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE)-create-id remove-share: rm -rf $(DESTDIR)$(SHAREDIR)/$(EXECUTABLE) diff --git a/configure b/configure index 44b08c6..8d52333 100755 --- a/configure +++ b/configure @@ -74,7 +74,7 @@ fi cat >> include.mk < -# -# 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; - -package gui_callbacks; - -sub on_exit -{ - my ($widget, $data) = @_; - - Gtk2->main_quit; -} - -sub on_b_mode_clicked -{ - my ($widget, $data) = @_; - - ::toggle_mode_gui(); -} - -sub on_b_apply_clicked -{ - my ($widget, $data) = @_; - - ::start_import_gui(); -} - -sub on_b_showcarts_clicked -{ - my ($widget, $data) = @_; - - ::show_used_carts_gui(); -} - -sub on_co_dropbox_changed -{ - my ($widget, $data) = @_; - - ::clear_status_gui(); - ::dropbox_updated_gui(); -} - -sub on_filechooser_selection_changed -{ - my ($widget, $data) = @_; - - ::clear_status_gui(); -} - -1; diff --git a/rhimport b/rhimport index caaa267..05bf4c9 100755 --- a/rhimport +++ b/rhimport @@ -24,22 +24,12 @@ 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; @@ -49,22 +39,16 @@ 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