summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-05-19 08:25:45 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-05-19 08:25:45 +0000
commitc6533f4fd04c3ed2cb04c99dda67402d1ff361c0 (patch)
tree6e54a60d61230d1a049a3d58cd1f7eea198d5567
parentcd4d6f6c42ed666c3cd1c9c29242bd691950b13d (diff)
downloaddrakx-c6533f4fd04c3ed2cb04c99dda67402d1ff361c0.tar
drakx-c6533f4fd04c3ed2cb04c99dda67402d1ff361c0.tar.gz
drakx-c6533f4fd04c3ed2cb04c99dda67402d1ff361c0.tar.bz2
drakx-c6533f4fd04c3ed2cb04c99dda67402d1ff361c0.tar.xz
drakx-c6533f4fd04c3ed2cb04c99dda67402d1ff361c0.zip
also remove modules ending with __END__
-rwxr-xr-xtools/simplify-drakx-modules4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/simplify-drakx-modules b/tools/simplify-drakx-modules
index 9276a64dd..ec8df1e76 100755
--- a/tools/simplify-drakx-modules
+++ b/tools/simplify-drakx-modules
@@ -1,3 +1,5 @@
#!/usr/bin/perl -pi
-s/^\s*use\s+(diagnostics|strict|vars|warnings).*//g
+s/^\s*use\s+(diagnostics|strict|vars|warnings).*//g;
+
+/^__END__/ and $_ = '', close ARGV;