summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-03-16 21:34:35 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-03-16 21:34:35 +0000
commitc7b30e1c21b1275c87021fe03ae7204801bc9646 (patch)
treee56c8ab6a411c5557ec0d51424521c3a0713b982 /mdk-stage1
parent18cd28718078bc9f39ce092580b212484a39cd3c (diff)
downloaddrakx-c7b30e1c21b1275c87021fe03ae7204801bc9646.tar
drakx-c7b30e1c21b1275c87021fe03ae7204801bc9646.tar.gz
drakx-c7b30e1c21b1275c87021fe03ae7204801bc9646.tar.bz2
drakx-c7b30e1c21b1275c87021fe03ae7204801bc9646.tar.xz
drakx-c7b30e1c21b1275c87021fe03ae7204801bc9646.zip
refine deps
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/pci-resource/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/pci-resource/Makefile b/mdk-stage1/pci-resource/Makefile
index 8627ab03c..b152cb44e 100644
--- a/mdk-stage1/pci-resource/Makefile
+++ b/mdk-stage1/pci-resource/Makefile
@@ -18,7 +18,7 @@
all: pci-ids.h
-pci-ids.h: /usr/share/ldetect-lst/pcitable update-pci-ids.pl
+pci-ids.h: /usr/share/ldetect-lst/pcitable update-pci-ids.pl ../../modules/network_modules.mar ../../modules/hd_modules.mar
perl update-pci-ids.pl > $@ || rm -f $@
clean:
on\s*\]\s*$/; } else { if (!/^\s*$/ && !/^\s*;/) { #-# $_ = "$entry\n$_"; $entryinserted = 1; last; } } } push(@lines, $entry) if $sectionfound && !$entryinserted; return join "\n", @lines; } sub addsection { my ($section, $filecontent) = @_; my @lines = split("\n", $filecontent); foreach (@lines) { # section already there, nothing to be done return $filecontent if /^\s*\[\s*$section\s*\]\s*$/; } return $filecontent . "\n[$section]"; } sub removeentry { my ($section, $entry, $filecontent) = @_; my $sectionfound = 0; my $done = 0; my @lines = split("\n", $filecontent); foreach (@lines) { $_ = "$_\n"; next if $done; if (!$sectionfound) { $sectionfound = 1 if /^\s*\[\s*$section\s*\]\s*$/; } else { if (/^\s*\[.*\]\s*$/) { # Next section $done = 1; } elsif (/^\s*$entry/) { $_ = ""; $done = 1; } } } return join "", @lines; } sub removesection { my ($section, $filecontent) = @_; my $sectionfound = 0; my $done = 0; my @lines = split("\n", $filecontent); foreach (@lines) { $_ = "$_\n"; next if $done; if (!$sectionfound) { if (/^\s*\[\s*$section\s*\]\s*$/) { $_ = ""; $sectionfound = 1; } } else { if (/^\s*\[.*\]\s*$/) { # Next section $done = 1; } else { $_ = ""; } } } return join "", @lines; } 1;