Merge pull request #4674 from bdbaddog/fix_2281_Aliases_ignore_pre_post_add_actions
[scons.git] / test / Java / Java-fixture / myjar.py
blob3e172317c51e67379607b760565ddde43dfe5b60
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 import fileinput
6 import sys
8 args = sys.argv[1:]
9 while args:
10 arg = args[0]
11 if arg == 'cf':
12 out = args[1]
13 args = args[1:]
14 else:
15 break
16 args = args[1:]
18 with open(out, 'wb') as ofp, fileinput.input(files=args, mode='rb') as ifp:
19 for line in ifp:
20 if not line.startswith(b'/*jar*/'):
21 ofp.write(line)
23 sys.exit(0)