repo.or.cz
/
scons.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ci skip] update generated files
[scons.git]
/
test
/
Java
/
Java-fixture
/
myjar.py
blob
3e172317c51e67379607b760565ddde43dfe5b60
1
# SPDX-License-Identifier: MIT
2
#
3
# Copyright The SCons Foundation
4
5
import
fileinput
6
import
sys
7
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
:]
17
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
)
22
23
sys
.
exit
(
0
)