-
Notifications
You must be signed in to change notification settings - Fork 0
/
git-pull
executable file
·92 lines (74 loc) · 1.96 KB
/
git-pull
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
'''
git-pull - Sequentially pull commits from remotes of the whole DesQ project
###================== Program Info ==================###
Program Name : git-pull
Version : 1.0.0
Platform : Linux/Unix
Requriements :
Must :
modules os, sys
Python Version : Python 3.4 or higher
Author : Marcus Britanicus
Email : [email protected]
License : Public Domain
###==================================================###
'''
### =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
#
# This script is in public domain; do whatever you want to do with it.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
### =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
import os, sys
Project = [
# Libraries
'LibDesQ/libdesq',
'LibDesQ/libdesqui',
# Session
'Session',
# Shell UI
'Shell',
# Theme
'Theme',
# DesQ Utils
'Utils/Clipboard',
## 'Utils/Clock',
'Utils/Disks',
## 'Utils/Dock',
"Utils/Keyring",
'Utils/Lock',
## 'Utils/OSK',
'Utils/Notifier',
'Utils/Panel',
'Utils/PolkitExec',
'Utils/PowerManager',
'Utils/Runner',
'Utils/SNI',
'Utils/Splash',
## 'Utils/SshAskPass',
'Utils/Volume',
# DesQ Apps
'Apps/Archiver',
'Apps/DropDown',
'Apps/Docs',
'Apps/Term',
'Apps/Files',
'Apps/Eye',
## 'DesQApps/DesQStats'
## 'DesQApps/DesQText'
]
if __name__ == '__main__' :
for proj in Project:
os.chdir( proj )
print( proj.split( '/' )[ -1 ] )
os.system( 'git checkout main; git pull --recurse-submodules --all' )
os.chdir( '../' )
if ( '/' in proj ):
os.chdir( '../' )
print( '' )