forked from wmgeolab/geoBoundaries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildPush.py
executable file
·63 lines (41 loc) · 2.61 KB
/
buildPush.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import subprocess
from os.path import expanduser
home = expanduser("~")
if(os.environ["manualRun"] == "True"):
version = "manual"
else:
version = os.environ["manualRun"]
if(version != "development"):
#geoBoundaries High Precision Single Country:
rcloneCallHPSCU = "rclone sync " + home + "/gbRelease/gbReleaseData/HPSCU/ web:/geoboundaries.org/data/geoBoundaries-" + version + "/"
dlProcessHPSCU = subprocess.Popen([rcloneCallHPSCU], shell=True)
dlProcessHPSCU.wait()
rcloneCallHPSCGS = "rclone sync " + home + "/gbRelease/gbReleaseData/HPSCGS/ web:/geoboundaries.org/data/geoBoundariesHPSCGS-" + version + "/"
dlProcessHPSCGS = subprocess.Popen([rcloneCallHPSCGS], shell=True)
dlProcessHPSCGS.wait()
rcloneCallSSCGS = "rclone sync " + home + "/gbRelease/gbReleaseData/SSCGS/ web:/geoboundaries.org/data/geoBoundariesSSCGS-" + version + "/"
dlProcessSSCGS = subprocess.Popen([rcloneCallSSCGS], shell=True)
dlProcessSSCGS.wait()
rcloneCallSSCU = "rclone sync " + home + "/gbRelease/gbReleaseData/SSCU/ web:/geoboundaries.org/data/geoBoundariesSSCU-" + version + "/"
dlProcessSSCU = subprocess.Popen([rcloneCallSSCU], shell=True)
dlProcessSSCU.wait()
rcloneCallSSCU = "rclone sync " + home + "/gbRelease/gbReleaseData/CGAZ/!CGAZ/ web:/geoboundaries.org/data/geoBoundariesCGAZ-" + version + "/"
dlProcessSSCU = subprocess.Popen([rcloneCallSSCU], shell=True)
dlProcessSSCU.wait()
else:
#geoBoundaries High Precision Single Country:
rcloneCallHPSCU = "rclone sync " + home + "/gbRelease/gbReleaseData/HPSCU/ web:/geoboundaries.org/data/dev/geoBoundaries-" + version + "/"
dlProcessHPSCU = subprocess.Popen([rcloneCallHPSCU], shell=True)
dlProcessHPSCU.wait()
rcloneCallHPSCGS = "rclone sync " + home + "/gbRelease/gbReleaseData/HPSCGS/ web:/geoboundaries.org/data/dev/geoBoundariesHPSCGS-" + version + "/"
dlProcessHPSCGS = subprocess.Popen([rcloneCallHPSCGS], shell=True)
dlProcessHPSCGS.wait()
rcloneCallSSCGS = "rclone sync " + home + "/gbRelease/gbReleaseData/SSCGS/ web:/geoboundaries.org/data/dev/geoBoundariesSSCGS-" + version + "/"
dlProcessSSCGS = subprocess.Popen([rcloneCallSSCGS], shell=True)
dlProcessSSCGS.wait()
rcloneCallSSCU = "rclone sync " + home + "/gbRelease/gbReleaseData/SSCU/ web:/geoboundaries.org/data/dev/geoBoundariesSSCU-" + version + "/"
dlProcessSSCU = subprocess.Popen([rcloneCallSSCU], shell=True)
dlProcessSSCU.wait()
rcloneCallCGAZ = "rclone sync " + home + "/gbRelease/gbReleaseData/CGAZ/!CGAZ/ web:/geoboundaries.org/data/dev/geoBoundariesCGAZ-" + version + "/"
dlProcessCGAZ = subprocess.Popen([rcloneCallCGAZ], shell=True)
dlProcessCGAZ.wait()