3 # find-provides: munge the provides dependencies from the kabideps file
5 # This software may be freely redistributed under the terms of the GNU
6 # General Public License (GPL).
8 # Takes a directory prefix, then outputs the kernel ABI dependencies.
10 __author__ = "Jon Masters <jcm@redhat.com>"
12 __date__ = "Sat 1 Aug 2009 10:00 EDT"
13 __copyright__ = "Copyright (C) 2009 Red Hat, Inc"
26 p = re.compile('^(.*)/symvers-(.*).gz$')
28 foo = sys.stdin.readline()
34 kabideps=sys.argv[1] + "/kernel-" + m.group(2) + "-kabideps"
39 if not (os.path.isfile(kabideps)):
40 sys.stderr.write(sys.argv[0] + ": cannot locate kabideps file: " + kabideps + "\n")
43 sys.stderr.write(sys.argv[0] + ": processing kABI: " + kabideps + "\n")
44 os.system("cat " + kabideps)