Teach oemake to handle wildcards in OEFILES
authorChris Larson <clarson@kergoth.com>
Thu, 3 Jul 2003 18:57:56 +0000 (18:57 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 3 Jul 2003 18:57:56 +0000 (18:57 +0000)
bin/oemake

index 8e66aa4..4470217 100644 (file)
@@ -186,7 +186,13 @@ if not len(files):
 
 #pkg = [ "pkgname", "depends", "provides" ]
 
+import glob
 for f in files:
+       globbed = glob.glob(f) or [ f ]
+       if globbed:
+               if [ f ] != globbed:
+                       files += globbed
+                       continue
        # read a file's metadata
        try:
                from copy import copy