From: Tara L Andrews Date: Wed, 28 Dec 2011 02:16:19 +0000 (+0100) Subject: script updates X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa71409fa9c0ca9fa7439af1cee03f300cbc05ff;p=scpubgit%2Fstemmatology.git script updates --- diff --git a/script/make_tradition.pl b/script/make_tradition.pl index bb7cb33..9e1e8a7 100755 --- a/script/make_tradition.pl +++ b/script/make_tradition.pl @@ -18,7 +18,7 @@ GetOptions( 'i|in=s' => \$informat, 'b|base=s' => \$inbase, 'o|out=s' => \$outformat, 'l|linear!' => \$linear, - 'n|name' => \$name, + 'n|name=s' => \$name, 'h|help' => \$help, 'sep=s' => \$sep, 'hack' => \$HACK, @@ -47,7 +47,7 @@ unless( $outformat =~ /^(graphml|svg|dot|stemma|csv)$/ ) { if( $informat =~ /^(KUL|CollateText)$/ && !$inbase ) { help( "$informat input needs a base text" ); } - +$sep = "\t" if $sep eq 'tab'; my $input = $ARGV[0]; diff --git a/script/save_to_db.pl b/script/save_to_db.pl index 497c723..59e5ef4 100644 --- a/script/save_to_db.pl +++ b/script/save_to_db.pl @@ -15,7 +15,6 @@ my $kdb = KiokuDB->connect( "dbi:SQLite:dbname=db/traditions.db", create => 1, typemap => KiokuDB::TypeMap->new( isa_entries => { - "Graph::Easy::Base" => KiokuDB::TypeMap::Entry::Naive->new, "Graph" => KiokuDB::TypeMap::Entry::Naive->new, "Graph::AdjacencyMap" => KiokuDB::TypeMap::Entry::Naive->new, },