ids-update.pl revision 448004c340d41f1b7eb3c06cbd694b8862e6524d
use strict;
use warnings;
my $vendor;
print(OUT "# This file is part of systemd.\n" .
"#\n" .
"# Data imported and updated from: http://www.linux-usb.org/usb.ids\n");
$line =~ s/\s+$//;
if (defined $1) {
$vendor = uc $1;
my $text = $2;
print(OUT "\n");
next;
}
if (defined $1) {
my $product = uc $1;
my $text = $2;
print(OUT "\n");
}
}
close(INP);
close(OUTP);
my $device;
print(OUT "# This file is part of systemd.\n" .
"#\n" .
"# Data imported and updated from: http://pciids.sourceforge.net/v2.2/pci.ids\n");
$line =~ s/\s+$//;
if (defined $1) {
$vendor = uc $1;
my $text = $2;
print(OUT "\n");
next;
}
if (defined $1) {
$device = uc $1;
my $text = $2;
print(OUT "\n");
next;
}
if (defined $1) {
my $sub_vendor = uc $1;
my $sub_device = uc $2;
my $text = $3;
print(OUT "\n");
print(OUT "pci:v0000" . $vendor . "d0000" . $device . "sv0000" . $sub_vendor . "sd0000" . $sub_device . "*\n");
}
}
close(INP);
close(OUTP);
print(OUT "# This file is part of systemd.\n" .
"#\n" .
"# Data imported and updated from: http://standards.ieee.org/develop/regauth/oui/oui.txt\n");
$line =~ s/\s+$//;
if (defined $1) {
my $vendor = uc $1;
my $text = $2;
print(OUT "\n");
}
}
close(INP);
close(OUTP);