line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package BlankOnDev; |
2
|
1
|
|
|
1
|
|
50852
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# Import : |
6
|
1
|
|
|
1
|
|
319
|
use BlankOnDev::DataDev; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
7
|
1
|
|
|
1
|
|
301
|
use BlankOnDev::Version; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
21
|
|
8
|
1
|
|
|
1
|
|
296
|
use BlankOnDev::Rilis; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
9
|
1
|
|
|
1
|
|
376
|
use BlankOnDev::Form; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
10
|
1
|
|
|
1
|
|
375
|
use BlankOnDev::Form::github; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1361
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# Version : |
13
|
|
|
|
|
|
|
our $VERSION = '0.1005'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# Subroutine for check Home Dir : |
16
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
17
|
|
|
|
|
|
|
sub check_homedir { |
18
|
0
|
|
|
0
|
0
|
|
my $homedir = $ENV{"HOME"}; |
19
|
0
|
0
|
|
|
|
|
if ($homedir =~ m/root/) { |
20
|
0
|
|
|
|
|
|
return 0; |
21
|
|
|
|
|
|
|
} else { |
22
|
0
|
|
|
|
|
|
return 1; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Subroutine for check directory BlankOnDev : |
27
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
28
|
|
|
|
|
|
|
sub check_dir_boidev { |
29
|
|
|
|
|
|
|
# For Data Developer : |
30
|
0
|
|
|
0
|
0
|
|
my $data_dev = BlankOnDev::DataDev::data_dev(); |
31
|
0
|
|
|
|
|
|
my $home_dir = $data_dev->{'home_dir'}; |
32
|
0
|
|
|
|
|
|
my $dir_dev = $data_dev->{'dir_dev'}; |
33
|
0
|
|
|
|
|
|
my $prefix_flcfg = $data_dev->{'prefix_flcfg'}; |
34
|
0
|
|
|
|
|
|
my $file_cfg_ext = $data_dev->{'fileCfg_ext'}; |
35
|
0
|
|
|
|
|
|
my $dir_pkgs = $data_dev->{'dir_pkg'}; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
my $result = 0; |
38
|
0
|
0
|
|
|
|
|
unless (-d $dir_dev) { |
39
|
0
|
|
|
|
|
|
$result = 0; |
40
|
|
|
|
|
|
|
} else { |
41
|
0
|
|
|
|
|
|
my $loc_dirpkg = $dir_dev.$dir_pkgs; |
42
|
0
|
0
|
|
|
|
|
unless (-d $loc_dirpkg) { |
43
|
0
|
|
|
|
|
|
$result = 0; |
44
|
|
|
|
|
|
|
} else { |
45
|
0
|
|
|
|
|
|
$result = 1; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
} |
48
|
0
|
|
|
|
|
|
return $result; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
# Suboutine for Form : |
51
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
52
|
|
|
|
|
|
|
sub FORM { |
53
|
0
|
|
|
0
|
0
|
|
my ($self, $form, $data_config) = @_; |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
|
|
|
my $result = ''; |
56
|
0
|
|
|
|
|
|
my $switch = { |
57
|
|
|
|
|
|
|
'timezone' => 'form_timezone', |
58
|
|
|
|
|
|
|
'rilis' => 'form_boi_rilis', |
59
|
|
|
|
|
|
|
'name' => 'form_name', |
60
|
|
|
|
|
|
|
'email-git' => 'form_email_git', |
61
|
|
|
|
|
|
|
'email-gpg' => 'form_email_gpg', |
62
|
|
|
|
|
|
|
'passph-gpg' => 'form_passphrase_gpg', |
63
|
|
|
|
|
|
|
}; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
# Check Form : |
66
|
0
|
0
|
|
|
|
|
if (exists $switch->{$form}) { |
67
|
0
|
|
|
|
|
|
my $subr = $switch->{$form}; |
68
|
0
|
|
|
|
|
|
$result = BlankOnDev::Form->$subr($data_config); |
69
|
|
|
|
|
|
|
} |
70
|
0
|
|
|
|
|
|
return $result; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
# Subroutine for option help. |
74
|
|
|
|
|
|
|
# This subroutine using in option "help" on script file "boidev". |
75
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
76
|
|
|
|
|
|
|
sub usage { |
77
|
0
|
|
|
0
|
0
|
|
print "\n"; |
78
|
0
|
|
|
|
|
|
print "---------" x 8 . "\n"; |
79
|
0
|
|
|
|
|
|
print " For Help Command : \n"; |
80
|
0
|
|
|
|
|
|
print "---------" x 8 . "\n"; |
81
|
0
|
|
|
|
|
|
print "\n"; |
82
|
|
|
|
|
|
|
|
83
|
0
|
|
|
|
|
|
print "USAGE :\n"; |
84
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
85
|
0
|
|
|
|
|
|
print " boidev <OPTIONS1>\n"; |
86
|
0
|
|
|
|
|
|
print " -- or --\n"; |
87
|
0
|
|
|
|
|
|
print " boidev <OPTIONS1> <OPTIONS2>\n"; |
88
|
0
|
|
|
|
|
|
print " -- or --\n"; |
89
|
0
|
|
|
|
|
|
print " boidev <OPTIONS1> <OPTION2> <OPTIONS3>\n"; |
90
|
0
|
|
|
|
|
|
print " -- or --\n"; |
91
|
0
|
|
|
|
|
|
print " boidev <OPTIONS1> <OPTION2> <INPUT>\n"; |
92
|
0
|
|
|
|
|
|
print "\n"; |
93
|
|
|
|
|
|
|
|
94
|
0
|
|
|
|
|
|
print "For USAGE : boidev <OPTIONS1>\n"; |
95
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "mig_prepare", "Mempersiapkan sistem sebelum melakukan aktifitas Migrasi Repo"); |
96
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "gpg-genkey", "Untuk generate key GnuPG"); |
97
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "gpg-auth", "Untuk melihat name, email dan passphrase generate key"); |
98
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "gpg-auth-dec", "Untuk melihat name, email dan passphrase yang tidak diencode"); |
99
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "install-pkg", "Untuk menginstall beberapa paket sebelum melakukan aktiftas pemaket"); |
100
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "bzr2git", "Untuk mengambil data Repository dari Bazaar Server dan dimigrasi ke GitHub"); |
101
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "list-cfg", "Untuk melihat konfigurasi yang sudah dilakukan"); |
102
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "list-file", "Untuk melihat file configurasi konfigurasi yang sudah ada"); |
103
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "rilis", "Untuk mengganti nama rilis yang aktif."); |
104
|
0
|
|
|
|
|
|
print "\n"; |
105
|
|
|
|
|
|
|
|
106
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git <OPTIONS2> \n"; |
107
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
108
|
0
|
|
|
|
|
|
usage_bzr2git(); |
109
|
0
|
|
|
|
|
|
print "\n"; |
110
|
|
|
|
|
|
|
|
111
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git addpkg <INPUT> \n"; |
112
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
113
|
0
|
|
|
|
|
|
usage_bzr2git_addpkg(); |
114
|
0
|
|
|
|
|
|
print "\n"; |
115
|
|
|
|
|
|
|
|
116
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git addpkg-file <INPUT> \n"; |
117
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
118
|
0
|
|
|
|
|
|
usage_bzr2git_addpkgfile(); |
119
|
0
|
|
|
|
|
|
print "\n"; |
120
|
|
|
|
|
|
|
|
121
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git list-pkg <OPTIONS3> \n"; |
122
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
123
|
0
|
|
|
|
|
|
usage_bzr2git_listpkg(); |
124
|
0
|
|
|
|
|
|
print "\n"; |
125
|
|
|
|
|
|
|
|
126
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git rename-pkg-group <INPUT> \n"; |
127
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
128
|
0
|
|
|
|
|
|
usage_bzr2git_renamepkg_group(); |
129
|
0
|
|
|
|
|
|
print "\n"; |
130
|
|
|
|
|
|
|
|
131
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git remove-pkg-group <INPUT> \n"; |
132
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
133
|
0
|
|
|
|
|
|
usage_bzr2git_removepkg_group(); |
134
|
0
|
|
|
|
|
|
print "\n"; |
135
|
|
|
|
|
|
|
|
136
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git remove-pkg <INPUT> \n"; |
137
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
138
|
0
|
|
|
|
|
|
usage_bzr2git_removepkg(); |
139
|
0
|
|
|
|
|
|
print "\n"; |
140
|
|
|
|
|
|
|
|
141
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git search-pkg <INPUT> \n"; |
142
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
143
|
0
|
|
|
|
|
|
usage_bzr2git_searchpkg(); |
144
|
0
|
|
|
|
|
|
print "\n"; |
145
|
|
|
|
|
|
|
|
146
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git branch <INPUT> \n"; |
147
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
148
|
0
|
|
|
|
|
|
usage_bzr2git_branch(); |
149
|
0
|
|
|
|
|
|
print "\n"; |
150
|
|
|
|
|
|
|
|
151
|
0
|
|
|
|
|
|
print "For USAGE : boidev bzr2git bzr-cgit <INPUT> \n"; |
152
|
0
|
|
|
|
|
|
print "---------" x 11 . "\n"; |
153
|
0
|
|
|
|
|
|
usage_bzr2git_bzr_cgit(); |
154
|
0
|
|
|
|
|
|
print "\n"; |
155
|
0
|
|
|
|
|
|
exit 0; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
# Subroutine for option help on option bzr2git : |
158
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
159
|
|
|
|
|
|
|
sub usage_bzr2git { |
160
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "addpkg-group", "Untuk Menambahkan nama Group Paket yang akan dimigrasi"); |
161
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "addpkg", "Untuk Menambahkan Paket yang akan dimigrasi"); |
162
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "addpkg-file", "Untuk Menambahkan Paket yang akan dimigrasi dari file list paket .boikg"); |
163
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "addpkg-in-file", "Untuk Menambahkan nama Paket yang akan dimigrasi ke file list paket .boikg"); |
164
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "rename-pkg-group", "Untuk mengubah nama group paket beserta nama group di dalam paket terkait"); |
165
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "remove-pkg-group", "Untuk menghapus nama Paket yang sudah ada dalam system aplikasi"); |
166
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "remove-pkg", "Untuk menghapus nama Paket yang sudah ada dalam system aplikasi"); |
167
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "list-pkg", "Untuk melihat daftar paket yang sudah terdaftar dalam system aplikasi."); |
168
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "list-pkg-group", "Untuk melihat daftar group paket yang sudah terdaftar dalam system aplikasi."); |
169
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "search-pkg", "untuk mencari data paket yang terdaftar pada system aplikasi"); |
170
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "branch", "Untuk branch dari repo bazaar berdasarkan list paket yang tersimpan pada system aplikasi"); |
171
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "bzr-cgit", "Untuk convert repository bazaar ke github repository"); |
172
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "git-push", "Untuk push ke git berdasarkan semua list paket yang tersimpan pada system aplikasi atau hanya 1 paket saja."); |
173
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "git-push-new", "Untuk push ke git tanpa convert dari Bazaar"); |
174
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "git-check", "Untuk mengecek repo di github, beserta informasi branch yang tersedia"); |
175
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "re-branch", "Untuk branch paket yang ada pada bazaar server"); |
176
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "re-gitpush", "Untuk Deploy ulang ke github"); |
177
|
|
|
|
|
|
|
# printf(" %-25s %s\n", "", ""); |
178
|
|
|
|
|
|
|
# printf(" %-25s %s\n", "", ""); |
179
|
|
|
|
|
|
|
} |
180
|
|
|
|
|
|
|
sub usage_bzr2git_addpkg_group { |
181
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[input_name]", "Berisi nama group yang akan ditambahkan, dan inputan tidak boleh menggunakan karakter [spasi]"); |
182
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git addpkg-group <INPUT>\"."); |
183
|
|
|
|
|
|
|
} |
184
|
|
|
|
|
|
|
sub usage_bzr2git_addpkg { |
185
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[input_name]", "Berisi nama paket yang akan ditambahkan, dan input tidak boleh menggunakan karakter [spasi]"); |
186
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git addpkg\"."); |
187
|
|
|
|
|
|
|
} |
188
|
|
|
|
|
|
|
sub usage_bzr2git_addpkgfile { |
189
|
0
|
|
|
0
|
0
|
|
my $data_dev = BlankOnDev::DataDev::data_dev(); |
190
|
0
|
|
|
|
|
|
my $filepkg_ext = $data_dev->{'filePkg_ext'}; |
191
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[input_loc_file]", "Berisi lokasi file daftar paket yang akan ditambahkan. Ex: /your/path/file_name.$filepkg_ext"); |
192
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "Extension file must \"$filepkg_ext\"."); |
193
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git addpkg-file\"."); |
194
|
|
|
|
|
|
|
} |
195
|
|
|
|
|
|
|
sub usage_bzr2git_listpkg { |
196
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[group_name]", "berisi nama group paket yang tersimpan dalam system."); |
197
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "all", "Untuk melihat daftar semua paket yang tersimpan dalam system."); |
198
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git list-pkg\"."); |
199
|
|
|
|
|
|
|
} |
200
|
|
|
|
|
|
|
sub usage_bzr2git_renamepkg_group { |
201
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama paket group yang akan diubah"); |
202
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git rename-pkg-group\"."); |
203
|
|
|
|
|
|
|
} |
204
|
|
|
|
|
|
|
sub usage_bzr2git_removepkg_group { |
205
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket yang akan dihapus, kemudian di rename"); |
206
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git remove-pkg-group\"."); |
207
|
|
|
|
|
|
|
} |
208
|
|
|
|
|
|
|
sub usage_bzr2git_removepkg { |
209
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_packages]", "berisi nama paket yang akan dihapus dari system aplikasi."); |
210
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "untuk menghapus paket dari system aplikasi berdasarkan nama group paket"); |
211
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git remove-pkg\"."); |
212
|
|
|
|
|
|
|
} |
213
|
|
|
|
|
|
|
sub usage_bzr2git_searchpkg { |
214
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan dicari."); |
215
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git search-pkg\"."); |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
sub usage_bzr2git_branch { |
218
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan didownload melalui \"bzr branch\"."); |
219
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk mengdownload semua paket yang terkait dengan group melalui \"bzr branch\"."); |
220
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git search-pkg\"."); |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
sub usage_bzr2git_bzr_cgit { |
223
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan dikonversi ke repo github"); |
224
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk meng-konversi semua paket yang terkait dengan group"); |
225
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "ke format repositori github"); |
226
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git bzr-cgit\"."); |
227
|
|
|
|
|
|
|
} |
228
|
|
|
|
|
|
|
sub usage_bzr2git_gitpush { |
229
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan di dorong ke github"); |
230
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk mendorong semua paket yang terkait dengan group"); |
231
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "ke repositori github"); |
232
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git git-push\"."); |
233
|
|
|
|
|
|
|
} |
234
|
|
|
|
|
|
|
sub usage_bzr2git_gitpush_new { |
235
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan di dorong ke github tanpa konveri dari format bazaar ke github"); |
236
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk mendorong semua paket yang terkait dengan group"); |
237
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "ke repositori github tanpa konveri dari format bazaar ke github"); |
238
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git git-push\"."); |
239
|
|
|
|
|
|
|
} |
240
|
|
|
|
|
|
|
sub usage_bzr2git_git_check { |
241
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan dicek dalam repositori github"); |
242
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk mengecek semua paket yang terkait dengan group"); |
243
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "yang berada dalam repositori github."); |
244
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git git-push\"."); |
245
|
|
|
|
|
|
|
} |
246
|
|
|
|
|
|
|
sub usage_bzr2git_reBranch { |
247
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan dibranch ulang dari server repositori bazaar"); |
248
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk branch ulang semua paket yang terkait dengan group"); |
249
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "yang berada dalam repositori bazaar."); |
250
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git git-push\"."); |
251
|
|
|
|
|
|
|
} |
252
|
|
|
|
|
|
|
sub usage_bzr2git_reGitpush { |
253
|
0
|
|
|
0
|
0
|
|
printf(" %-25s %s\n", "[name_of_packages]", "berisi nama paket yang akan dorong ulang ke github, "); |
254
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "untuk dilakukan perbaikan terhadap proses push yang salah"); |
255
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "[name_of_group_packages]", "berisi nama group paket untuk mendorong ulang semua paket yang terkait dengan group"); |
256
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "", "ke repositori github, untuk dilakukan perbaikan terhadap proses push yang salah"); |
257
|
0
|
|
|
|
|
|
printf(" %-25s %s\n", "help", "Berisi help penggunaan command \"boidev bzr2git git-push\"."); |
258
|
|
|
|
|
|
|
} |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
# For Help in list pkg : |
261
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
262
|
|
|
|
|
|
|
sub help_list_pkg { |
263
|
|
|
|
|
|
|
# printf(" %-60s %s\n", "testing", "bzrBranch = 0 --> Another Error, See Logs"); |
264
|
0
|
|
|
0
|
0
|
|
printf(" %-45s %s\n", "bzrBranch = 0 --> Another Error, See Logs", "gitPush = 0 --> Another Error, See Logs"); |
265
|
0
|
|
|
|
|
|
printf(" %-45s %s\n", "bzrBranch = 1 --> Success Branch", "gitPush = 1 --> Success Git Push"); |
266
|
0
|
|
|
|
|
|
printf(" %-45s %s\n", "bzrBranch = 2 --> Already Branch", "gitPush = 2 --> ..."); |
267
|
0
|
|
|
|
|
|
printf(" %-45s %s\n", "bzrBranch = 3 --> Error URL Branch", "gitPush = 3 --> URL Repo git is not valid or URL Repo git is empty"); |
268
|
0
|
|
|
|
|
|
print "\n"; |
269
|
0
|
|
|
|
|
|
printf(" %s\n", "bzrConvertGit = 0 --> Another Error, See Logs"); |
270
|
0
|
|
|
|
|
|
printf(" %s\n", "bzrConvertGit = 1 --> Success Convert to Git"); |
271
|
0
|
|
|
|
|
|
printf(" %s\n", "bzrConvertGit = 2 --> Not bazaar repository"); |
272
|
|
|
|
|
|
|
} |
273
|
|
|
|
|
|
|
# Suroutine for command "boidev -v" or "boidev --version" : |
274
|
|
|
|
|
|
|
# ------------------------------------------------------------------------ |
275
|
|
|
|
|
|
|
sub version_apps { |
276
|
0
|
|
|
0
|
0
|
|
print "\n"; |
277
|
0
|
|
|
|
|
|
print "This is BlankOnDev Tools, version $BlankOnDev::Version::appVer, subversion $BlankOnDev::Version::SubVer\n\n"; |
278
|
0
|
|
|
|
|
|
print "Copyright 1438 H, Achmad Yusri Afandi.\n\n"; |
279
|
|
|
|
|
|
|
|
280
|
0
|
|
|
|
|
|
print "The purpose of tools for Packages Maintainer on BlankOn GNU/Linux Developer.\n"; |
281
|
0
|
|
|
|
|
|
print "This program covered several tools for Developer, include : \n"; |
282
|
0
|
|
|
|
|
|
print "- Migration Bazaar repositories format to GitHub Repositories format\n"; |
283
|
0
|
|
|
|
|
|
print "- Management repositories in your system. [Plan Feature] \n"; |
284
|
0
|
|
|
|
|
|
print "- Build Debian Packages from source. [Plan Feature] \n"; |
285
|
|
|
|
|
|
|
|
286
|
0
|
|
|
|
|
|
print "\n"; |
287
|
|
|
|
|
|
|
} |
288
|
|
|
|
|
|
|
1; |
289
|
|
|
|
|
|
|
__END__ |