Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
d960c68d
Commit
d960c68d
authored
Apr 14, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
55ca1fbe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
script/code/code_sync.sh
+7
-0
script/code/update_properties.py
+21
-0
No files found.
script/code/code_sync.sh
View file @
d960c68d
echo
"1、同盾列表添加最少选择数量"
echo
"1、同盾列表添加最少选择数量"
echo
"2、gradle.properties 添加同盾开关"
echo
-n
"请输入指令编号:"
echo
-n
"请输入指令编号:"
read
commod
read
commod
...
@@ -7,4 +8,9 @@ if (($commod == '1'))
...
@@ -7,4 +8,9 @@ if (($commod == '1'))
then
then
chmod a+x thirdpart_list.py
chmod a+x thirdpart_list.py
./thirdpart_list.py
./thirdpart_list.py
elif
((
$commod
==
'2'
))
then
chmod a+x update_properties.py
./update_properties.py
'td_mode=close'
fi
fi
\ No newline at end of file
script/code/update_properties.py
0 → 100755
View file @
d960c68d
#!/usr/bin/env python3
import
json
import
string
import
random
import
glob
,
os
import
sys
path
=
"../../../gradle.properties"
code
=
sys
.
argv
[
1
]
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
lines
=
f
.
readlines
()
with
open
(
path
,
"w"
,
encoding
=
"utf-8"
)
as
f_w
:
for
line
in
lines
:
if
code
in
line
:
line
=
""
if
"org.gradle.jvmargs"
in
line
:
line
=
code
+
"
\n
"
+
line
f_w
.
write
(
line
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment