aboutsummaryrefslogtreecommitdiffstats
path: root/script/catdap_server.pl
blob: b75954bb8e2b7314adb16d076647a3006bdbf66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env perl

BEGIN {
    $ENV{CATALYST_SCRIPT_GEN} = 40;
}

use Catalyst::ScriptRunner;
Catalyst::ScriptRunner->run('CatDap', 'Server');

1;

=head1 NAME

catdap_server.pl - Catalyst Test Server

=head1 SYNOPSIS

catdap_server.pl [options]

   -d --debug           force debug mode
   -f --fork            handle each request in a new process
                        (defaults to false)
   -? --help            display this help and exits
   -h --host            host (defaults to all)
   -p --port            port (defaults to 3000)
   -k --keepalive       enable keep-alive connections
   -r --restart         restart when files get modified
                        (defaults to false)
   -rd --restart_delay  delay between file checks
                        (ignored if you have Linux::Inotify2 installed)
   -rr --restart_regex  regex match files that trigger
                        a restart when modified
                        (defaults to '\.yml$|\.yaml$|\.conf|\.pm$')
   --restart_directory  the directory to search for
                        modified files, can be set mulitple times
                        (defaults to '[SCRIPT_DIR]/..')
   --follow_symlinks    follow symlinks in search directories
                        (defaults to false. this is a no-op on Win32)
   --background         run the process in the background
   --pidfile            specify filename for pid file

 See also:
   perldoc Catalyst::Manual
   perldoc Catalyst::Manual::Intro

=head1 DESCRIPTION

Run a Catalyst Testserver for this application.

=head1 AUTHORS

Catalyst Contributors, see Catalyst.pm

=head1 COPYRIGHT

This library is free software. You can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

drakx-eae69cebb23d70f590a6107ebc9f0558a80a560e.tar'>drakx-eae69cebb23d70f590a6107ebc9f0558a80a560e.tar
drakx-eae69cebb23d70f590a6107ebc9f0558a80a560e.tar.gz
drakx-eae69cebb23d70f590a6107ebc9f0558a80a560e.tar.bz2
drakx-eae69cebb23d70f590a6107ebc9f0558a80a560e.tar.xz
drakx-eae69cebb23d70f590a6107ebc9f0558a80a560e.zip
complies to ldetect/pcitable
Diffstat (limited to 'mdk-stage1')
-rwxr-xr-xmdk-stage1/pci-resource/update-pci-ids.pl15
1 files changed, 10 insertions, 5 deletions
diff --git a/mdk-stage1/pci-resource/update-pci-ids.pl b/mdk-stage1/pci-resource/update-pci-ids.pl
index 396621faa..154ea8b42 100755
--- a/mdk-stage1/pci-resource/update-pci-ids.pl
+++ b/mdk-stage1/pci-resource/update-pci-ids.pl
@@ -1,8 +1,12 @@
#!/usr/bin/perl
use lib "../../perl-install";
+
use common qw(:common);
-use pci_probing::pcitable;
+require '../../../soft/ldetect-lst/convert/merge2pcitable.pl';
+
+my $drivers = read_pcitable("../../../soft/ldetect-lst/lst/pcitable");
+
print '
#define PCI_REVISION_ID 0x08 /* Revision ID */
@@ -30,10 +34,11 @@ struct pci_module_map ${_}_pci_ids[] = {
m|([^/]*)\.o$|;
$l{$1} = 1;
}
- while (my ($k, $v) = each %pci_probing::pcitable::ids) {
- $l{$v->[1]} or next;
- printf qq|\t{0x%04x , 0x%04x , ( "%s" ), ( "%s" )} ,\n|,
- $k / 0x10000, $k % 0x10000, $v->[0], $v->[1];
+ while (my ($k, $v) = each %$drivers) {
+ $l{$v->[0]} or next;
+ $k =~ /^(....)(....)/;
+ printf qq|\t{0x%s , 0x%s , ( "%s" ), ( "%s" )} ,\n|,
+ $1, $2, $v->[1], $v->[0];
}
print "