From fdb81fb612652a1a45efb740c2afde37f3b252aa Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Mon, 8 Sep 2008 18:30:12 +0200 Subject: [PATCH] Move static config files into cf --- PciIds/Startup.pm | 2 +- answers => cf/answers | 0 config => cf/config | 0 rights => cf/rights | 0 tables => cf/tables | 0 scripts/initdb.pl | 3 ++- 6 files changed, 3 insertions(+), 2 deletions(-) rename answers => cf/answers (100%) rename config => cf/config (100%) rename rights => cf/rights (100%) rename tables => cf/tables (100%) diff --git a/PciIds/Startup.pm b/PciIds/Startup.pm index ee7d9db..478b4ba 100644 --- a/PciIds/Startup.pm +++ b/PciIds/Startup.pm @@ -22,7 +22,7 @@ use warnings; use base 'Exporter'; #Where are data? -our $directory = '/home/vorner/prog/pciids/'; +our $directory = '/home/vorner/prog/pciids/cf/'; our @EXPORT=qw($directory); #Where are the modules? diff --git a/answers b/cf/answers similarity index 100% rename from answers rename to cf/answers diff --git a/config b/cf/config similarity index 100% rename from config rename to cf/config diff --git a/rights b/cf/rights similarity index 100% rename from rights rename to cf/rights diff --git a/tables b/cf/tables similarity index 100% rename from tables rename to cf/tables diff --git a/scripts/initdb.pl b/scripts/initdb.pl index 730bfd3..45589f6 100755 --- a/scripts/initdb.pl +++ b/scripts/initdb.pl @@ -25,6 +25,7 @@ BEGIN { } use PciIds::Config; use PciIds::Db; +use PciIds::Startup; use DBI; my @lines; @@ -46,7 +47,7 @@ sub createTable( $ ) { } my $dbh = connectDb(); -open TABLES, "tables" or die "Could not open table definitions\n"; +open TABLES, $directory."tables" or die "Could not open table definitions\n"; foreach( ) { chomp; if( /^\s*$/ ) { -- 2.39.2