|
@ -62,6 +62,12 @@ def parse_args(): |
|
|
return p.parse_args() |
|
|
return p.parse_args() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def should_skip(filename): |
|
|
|
|
|
if filename.endswith('~'): |
|
|
|
|
|
return True |
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
def main(): |
|
|
args = parse_args() |
|
|
args = parse_args() |
|
|
print(args) |
|
|
print(args) |
|
@ -77,6 +83,8 @@ def main(): |
|
|
elif args.target == 'all': |
|
|
elif args.target == 'all': |
|
|
for root,dirnames,filenames in os.walk(basepath): |
|
|
for root,dirnames,filenames in os.walk(basepath): |
|
|
for filename in filenames: |
|
|
for filename in filenames: |
|
|
|
|
|
if should_skip(filename): |
|
|
|
|
|
continue |
|
|
containerfile = f'buildtools/containerfiles/{filename}' |
|
|
containerfile = f'buildtools/containerfiles/{filename}' |
|
|
containerfiles.append(containerfile) |
|
|
containerfiles.append(containerfile) |
|
|
else: |
|
|
else: |
|
@ -84,6 +92,8 @@ def main(): |
|
|
for filename in filenames: |
|
|
for filename in filenames: |
|
|
if args.target not in filename: |
|
|
if args.target not in filename: |
|
|
continue |
|
|
continue |
|
|
|
|
|
if should_skip(filename): |
|
|
|
|
|
continue |
|
|
containerfile = f'buildtools/containerfiles/{filename}' |
|
|
containerfile = f'buildtools/containerfiles/{filename}' |
|
|
containerfiles.append(containerfile) |
|
|
containerfiles.append(containerfile) |
|
|
|
|
|
|
|
|