view sources/toys/filter.py @ 1439:d2b121fc1567

Use the ext4 driver for ext3 and ext2 filesystems.
author Rob Landley <rob@landley.net>
date Sat, 10 Sep 2011 08:03:10 -0500
parents f24c0deeed24
children
line wrap: on
line source

#!/usr/bin/python

# Filter out baseconfig entries from output of miniconfig.sh

import os,sys

if len(sys.argv) != 3:
  sys.stderr.write("usage: filter.py baseconfig mini.config\n")
  sys.exit(1)

baseconfig=file(sys.argv[1]).readlines()
miniconfig=file(sys.argv[2]).readlines()

for i in baseconfig:
  if i in miniconfig:
    miniconfig.remove(i)

print "".join(miniconfig),