This commit is contained in:
aozhiwei 2022-04-19 11:01:33 +08:00
parent 1806de245a
commit 9f1b98928d

View File

@ -1,4 +1,5 @@
import sys import sys
import os
# friend_rankserver_z2_test # friend_rankserver_z2_test
# friend_imserver_z2_test # friend_imserver_z2_test
@ -128,12 +129,16 @@ projects = [
def pubOne(srcId, targetId): def pubOne(srcId, targetId):
resDir = '~/opensource/res' resDir = '~/opensource/res'
confDir = '~/opensource/conf' confDir = '~/opensource/conf'
gitDir = '~/opensource/publish' gitDir = '~/opensource/publish' + '/z' + targetId
os.system(gitDir)
for proj in projects:
cmd = 'cd ' + gitDir + ' && git clone ' + proj['git']
os.system(cmd)
def pub(): def pub():
srcId = sys.argv[1] srcId = sys.argv[1]
targetIds = sys.argv[2].split(',') targetIds = sys.argv[2].split(',')
for targetId in targetIds: for targetId in targetIds:
pass pubOne(srcId, targetId)
pub() pub()