summaryrefslogtreecommitdiffstats
path: root/tools/patch_pcmcia_config.pl
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-08-30 18:55:27 +0000
committerMystery Man <unknown@mandriva.org>2005-08-30 18:55:27 +0000
commitea3a905b182f34bba2f071111d5263f1868c4a6f (patch)
tree45713836a82198448c93696b30f3c9ab7ba9aa4a /tools/patch_pcmcia_config.pl
parentf5427227e11f6025648f9537ffd3110c003f7e25 (diff)
downloaddrakx-backup-do-not-use-10_3_0_50mdk.tar
drakx-backup-do-not-use-10_3_0_50mdk.tar.gz
drakx-backup-do-not-use-10_3_0_50mdk.tar.bz2
drakx-backup-do-not-use-10_3_0_50mdk.tar.xz
drakx-backup-do-not-use-10_3_0_50mdk.zip
This commit was manufactured by cvs2svn to create tagV10_3_0_50mdk
'V10_3_0_50mdk'.
Diffstat (limited to 'tools/patch_pcmcia_config.pl')
-rwxr-xr-xtools/patch_pcmcia_config.pl28
1 files changed, 0 insertions, 28 deletions
diff --git a/tools/patch_pcmcia_config.pl b/tools/patch_pcmcia_config.pl
deleted file mode 100755
index 6e8614cc0..000000000
--- a/tools/patch_pcmcia_config.pl
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/perl
-
-use MDK::Common;
-
-listlength(@ARGV) == 2 or die "usage: $0 /path/to/etc/pcmcia/config /path/to/modules.dep\n";
-
-my ($pcmcia_config, $modules_dep) = @ARGV;
-
-
-my @ignore_modules_in_deps = qw(pcmcia_core pcmcia ds);
-
-my @conf_contents = cat_($pcmcia_config);
-die "uhm, problem, <$pcmcia_config> seems short in lines\n" if listlength(@conf_contents) < 10;
-
-foreach (cat_($modules_dep)) {
- /^(\S+): (.*)/ and $deps{$1} = [ split ' ', $2 ] or die "could not understand `$_' in <$modules_dep>\n";
-}
-
-foreach my $confline (@conf_contents) {
- $confline =~ /class.*\s+module\s+(.*)/ or next;
- my @modules = map { /"([^"]+)"(.*)/ && [ $1, $2 ] } split ',', $1;
- $_->[0] =~ s|.*/([^/]+)$|$1|g foreach @modules; #- remove directories since we don't support that during install
- my @deps = grep { !member($_, @ignore_modules_in_deps, map { $_->[0] } @modules) } map { @{$deps{$_->[0]}} } @modules;
- my $new_modz = join ', ', (map { "\"$_\"" } @deps), (map { "\"$_->[0]\"$_->[1]" } @modules);
- $confline =~ s/(class.*\s+module\s+).*/$1$new_modz/;
-}
-
-output($pcmcia_config, @conf_contents);