view sources/toys/filter.py @ 1682:64316ca2bc9b

Remove redundant list assignment in ccwrap that screws up ordering and puts the -L entries in the wrong order.
author Rob Landley <rob@landley.net>
date Fri, 05 Sep 2014 23:54:01 -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),