]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- helper script.
authorPaweł Sikora <pluto@pld-linux.org>
Tue, 16 May 2006 17:22:40 +0000 (17:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-module-build.pl -> 1.1.2.1

kernel-module-build.pl [new file with mode: 0644]

diff --git a/kernel-module-build.pl b/kernel-module-build.pl
new file mode 100644 (file)
index 0000000..c52d66d
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+
+open( F, $ARGV[0]) or die("cannot open file: $ARGV[0]\n" );
+@lines = <F>;
+close( F );
+
+foreach (@lines)
+{
+       @pe = split( '/', $_ );
+       my $tmp;
+       for my $p (0 .. $#pe - 1)
+       {
+               $tmp = $tmp . '/' . $pe[$p];
+               print( "%dir $ARGV[1]$tmp\n" );
+       }
+       my $file = join( '/', @pe );
+       print( "$ARGV[1]/$file" );
+}
This page took 0.09891 seconds and 4 git commands to generate.