summaryrefslogtreecommitdiffstats
path: root/buildfct
blob: 41f08f540324768b8daa02c3233c78f94c985ce2 (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
alias rpmdate='LC_ALL="C" date +"%a %b %d %Y"'
alias build='rpmbuild      --define "_source_filedigest_algorithm 0" --define "_specdir $(pwd)" --define "_sourcedir $(pwd)"'
alias msrpm='rpmbuild  -bs --define "_source_filedigest_algorithm 0" --define "_specdir $(pwd)" --define "_sourcedir $(pwd)" --define "dist .remi" $(basename $(pwd)).spec'
alias rhpkg='echo NO PLEASE, use fedpkg'

mocketc=/home/rpmbuild/SPECS/remirepo/tools/mock
#alias mockfc3="setarch  i686 mock -r fc3  --arch i386 rebuild "
#alias mockfc4="setarch  i686 mock -r fc4  --arch i386 rebuild "
#alias mockfc5="setarch  i686 mock -r fc5  --arch i386 rebuild "
#alias mockfc6x="               mock --configdir=$mocketc -r fc6x               rebuild "
#alias mockfc7i="setarch i686   mock --configdir=$mocketc -r fc7i   --arch i386 rebuild "
#alias mockfc7x="               mock --configdir=$mocketc -r fc7x               rebuild "

#alias mockfc6i="setarch i686   mock --configdir=$mocketc -r fc6i   --arch i386 rebuild "
#alias mockfc8i="setarch i686   mock --configdir=$mocketc -r fc8i   --arch i386 rebuild "
#alias mockfc8x="               mock --configdir=$mocketc -r fc8x               rebuild "
#alias mockfc9i="setarch i686   mock --configdir=$mocketc -r fc9i   --arch i386 rebuild "
#alias mockfc9x="               mock --configdir=$mocketc -r fc9x               rebuild "
#alias mockfc9it="setarch i686  mock --configdir=$mocketc -r fc9it  --arch i386 rebuild "
#alias mockfc9xt="              mock --configdir=$mocketc -r fc9xt              rebuild "
#alias mockfc10i="setarch i686  mock --configdir=$mocketc -r fc10i  --arch i386 rebuild "
#alias mockfc10x="              mock --configdir=$mocketc -r fc10x              rebuild "
#alias mockfc10it="setarch i686 mock --configdir=$mocketc -r fc10it --arch i386 rebuild "
#alias mockfc10xt="             mock --configdir=$mocketc -r fc10xt             rebuild "

#alias mockfc11i="setarch i686  mock --configdir=$mocketc -r fc11i  --arch i586 rebuild "
#alias mockfc11x="              mock --configdir=$mocketc -r fc11x              rebuild "
#alias mockfc11it="setarch i686 mock --configdir=$mocketc -r fc11it --arch i586 rebuild "
#alias mockfc11xt="             mock --configdir=$mocketc -r fc11xt             rebuild "

#alias mockfc12i="setarch i686  mock --configdir=$mocketc -r fc12i  --arch i686 rebuild "
#alias mockfc12it="setarch i686 mock --configdir=$mocketc -r fc12it --arch i686 rebuild "
#alias mockfc12x="              mock --configdir=$mocketc -r fc12x              rebuild "
#alias mockfc12xt="             mock --configdir=$mocketc -r fc12xt             rebuild "

#alias mockfc13i="setarch i686  mock --configdir=$mocketc -r fc13i  --arch i686 rebuild "
#alias mockfc13it="setarch i686 mock --configdir=$mocketc -r fc13it --arch i686 rebuild "
#alias mockfc13x="              mock --configdir=$mocketc -r fc13x              rebuild "
#alias mockfc13xt="             mock --configdir=$mocketc -r fc13xt             rebuild "

#alias mockfc14i="setarch i686  mock --configdir=$mocketc -r fc14i  --arch i686 rebuild "
#alias mockfc14it="setarch i686 mock --configdir=$mocketc -r fc14it --arch i686 rebuild "
#alias mockfc14x="              mock --configdir=$mocketc -r fc14x              rebuild "
#alias mockfc14xt="             mock --configdir=$mocketc -r fc14xt             rebuild "

#alias mockfc15i="setarch i686  mock --configdir=$mocketc -r fc15i  --arch i686 rebuild "
#alias mockfc15it="setarch i686 mock --configdir=$mocketc -r fc15it --arch i686 rebuild "
#alias mockfc15x="              mock --configdir=$mocketc -r fc15x              rebuild "
#alias mockfc15xt="             mock --configdir=$mocketc -r fc15xt             rebuild "

#alias mockfc16i="setarch i686  mock --configdir=$mocketc -r fc16i  --arch i686 rebuild "
#alias mockfc16it="setarch i686 mock --configdir=$mocketc -r fc16it --arch i686 rebuild "
#alias mockfc16x="              mock --configdir=$mocketc -r fc16x              rebuild "
#alias mockfc16xt="             mock --configdir=$mocketc -r fc16xt             rebuild "
#alias mockfc16xd="             mock --configdir=$mocketc -r fc16xd             rebuild "

alias mockfc17i="setarch i686  mock --configdir=$mocketc -r fc17i  --arch i686 rebuild "
#lias mockfc17it="setarch i686 mock --configdir=$mocketc -r fc17it --arch i686 rebuild "
alias mockfc17x="              mock --configdir=$mocketc -r fc17x              rebuild "
#lias mockfc17xt="             mock --configdir=$mocketc -r fc17xt             rebuild "
#lias mockfc17xd="             mock --configdir=$mocketc -r fc17xd             rebuild "

alias mockfc18i="setarch i686  mock --configdir=$mocketc -r fc18i  --arch i686 rebuild "
#lias mockfc18it="setarch i686 mock --configdir=$mocketc -r fc18it --arch i686 rebuild "
alias mockfc18x="              mock --configdir=$mocketc -r fc18x              rebuild "
#lias mockfc18xt="             mock --configdir=$mocketc -r fc18xt             rebuild "
#lias mockfc18xd="             mock --configdir=$mocketc -r fc18xd             rebuild "

alias mockfc19i="  setarch i686  mock --configdir=$mocketc -r fc19i   --arch i686 rebuild "
alias mockfc19i56="setarch i686  mock --configdir=$mocketc -r fc19i56 --arch i686 rebuild "
alias mockfc19x="                mock --configdir=$mocketc -r fc19x               rebuild "
alias mockfc19x56="              mock --configdir=$mocketc -r fc19x56             rebuild "
alias mockfc19xscl54="           mock --configdir=$mocketc -r fc19xscl54          rebuild "
alias mockfc19xscl56="           mock --configdir=$mocketc -r fc19xscl56          rebuild "
#lias mockfc19xd="               mock --configdir=$mocketc -r fc19xd              rebuild "

alias mockfc20i="  setarch i686  mock --configdir=$mocketc -r fc20i   --arch i686 rebuild "
alias mockfc20i56="setarch i686  mock --configdir=$mocketc -r fc20i56 --arch i686 rebuild "
alias mockfc20x="                mock --configdir=$mocketc -r fc20x               rebuild "
alias mockfc20x56="              mock --configdir=$mocketc -r fc20x56             rebuild "
alias mockfc20xscl54="           mock --configdir=$mocketc -r fc20xscl54          rebuild "
alias mockfc20xscl56="           mock --configdir=$mocketc -r fc20xscl56          rebuild "
alias mockfc20xscl70="           mock --configdir=$mocketc -r fc20xscl70          rebuild "
alias mockfc20xd="               mock --configdir=$mocketc -r fc20xd              rebuild "

alias mockfc21i="  setarch i686  mock --configdir=$mocketc -r fc21i   --arch i686 rebuild "
alias mockfc21i56="setarch i686  mock --configdir=$mocketc -r fc21i56 --arch i686 rebuild "
alias mockfc21x="                mock --configdir=$mocketc -r fc21x               rebuild "
alias mockfc21x56="              mock --configdir=$mocketc -r fc21x56             rebuild "
alias mockfc21xt="               mock --configdir=$mocketc -r fc21xt              rebuild "
alias mockfc21xscl54="           mock --configdir=$mocketc -r fc21xscl54          rebuild "
alias mockfc21xscl55="           mock --configdir=$mocketc -r fc21xscl55          rebuild "
alias mockfc21xscl56="           mock --configdir=$mocketc -r fc21xscl56          rebuild "
alias mockfc21xscl70="           mock --configdir=$mocketc -r fc21xscl70          rebuild "

alias mockfc22i="  setarch i686  mock --configdir=$mocketc -r fc22i   --arch i686 rebuild "
alias mockfc22i56="setarch i686  mock --configdir=$mocketc -r fc22i56 --arch i686 rebuild "
alias mockfc22x="                mock --configdir=$mocketc -r fc22x               rebuild "
alias mockfc22x56="              mock --configdir=$mocketc -r fc22x56             rebuild "
alias mockfc22xscl54="           mock --configdir=$mocketc -r fc22xscl54          rebuild "
alias mockfc22xscl55="           mock --configdir=$mocketc -r fc22xscl55          rebuild "
alias mockfc22xscl56="           mock --configdir=$mocketc -r fc22xscl56          rebuild "
alias mockfc22xscl70="           mock --configdir=$mocketc -r fc22xscl70          rebuild "

#alias mockel4i="setarch i686  mock --configdir=$mocketc -r el4i  --arch i386 rebuild "
#alias mockel4it="setarch i686 mock --configdir=$mocketc -r el4it --arch i386 rebuild "
#alias mockel4x="              mock --configdir=$mocketc -r el4x              rebuild "
#alias mockel4xt="             mock --configdir=$mocketc -r el4xt             rebuild "

alias mockel5i="setarch i686   mock --configdir=$mocketc -r el5i   --arch i386 rebuild "
alias mockel5it="setarch i686  mock --configdir=$mocketc -r el5it  --arch i386 rebuild "
alias mockel5i55="setarch i686 mock --configdir=$mocketc -r el5i55 --arch i386 rebuild "
alias mockel5i56="setarch i686 mock --configdir=$mocketc -r el5i56 --arch i386 rebuild "
alias mockel5x="               mock --configdir=$mocketc -r el5x               rebuild "
alias mockel5xt="              mock --configdir=$mocketc -r el5xt              rebuild "
alias mockel5x55="             mock --configdir=$mocketc -r el5x55             rebuild "
alias mockel5x56="             mock --configdir=$mocketc -r el5x56             rebuild "

alias mockel6i="  setarch i686 mock --configdir=$mocketc -r el6i   --arch i686 rebuild "
alias mockel6it=" setarch i686 mock --configdir=$mocketc -r el6it  --arch i686 rebuild "
alias mockel6i55="setarch i686 mock --configdir=$mocketc -r el6i55 --arch i686 rebuild "
alias mockel6i56="setarch i686 mock --configdir=$mocketc -r el6i56 --arch i686 rebuild "
alias mockel6i70="setarch i686 mock --configdir=$mocketc -r el6i70 --arch i686 rebuild "
alias mockel6x="               mock --configdir=$mocketc -r el6x               rebuild "
alias mockel6xt="              mock --configdir=$mocketc -r el6xt              rebuild "
alias mockel6x55="             mock --configdir=$mocketc -r el6x55             rebuild "
alias mockel6x56="             mock --configdir=$mocketc -r el6x56             rebuild "
alias mockel6x70="             mock --configdir=$mocketc -r el6x70             rebuild "
alias mockel6xscl54="          mock --configdir=$mocketc -r el6xscl54          rebuild "
alias mockel6xscl55="          mock --configdir=$mocketc -r el6xscl55          rebuild "
alias mockel6xscl56="          mock --configdir=$mocketc -r el6xscl56          rebuild "
alias mockel6xscl70="          mock --configdir=$mocketc -r el6xscl70          rebuild "

alias mockel7x="               mock --configdir=$mocketc -r el7x               rebuild "
alias mockel7xt="              mock --configdir=$mocketc -r el7xt              rebuild "
alias mockel7x55="             mock --configdir=$mocketc -r el7x55             rebuild "
alias mockel7x56="             mock --configdir=$mocketc -r el7x56             rebuild "
alias mockel7x70="             mock --configdir=$mocketc -r el7x70             rebuild "
alias mockel7xscl54="          mock --configdir=$mocketc -r el7xscl54          rebuild "
alias mockel7xscl55="          mock --configdir=$mocketc -r el7xscl55          rebuild "
alias mockel7xscl56="          mock --configdir=$mocketc -r el7xscl56          rebuild "
alias mockel7xscl70="          mock --configdir=$mocketc -r el7xscl70          rebuild "

alias mockdevi="setarch i686 mock -r fedora-devel-i386   rebuild "
alias mockdevx="             mock -r fedora-devel-x86_64 rebuild "

# Build All distribution / version / 32bits for remi
mockalli()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22 20 19
  do
    echo -n "$(date +%X) fc$i "
    setarch i686  mock $quiet --configdir=$mocketc -r fc${i}i --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  done
  echo -n "$(date +%X) el6  "
  setarch i686    mock $quiet --configdir=$mocketc -r el6i    --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) el5  "
  setarch i686    mock $quiet --configdir=$mocketc -r el5i    --arch i386 rebuild $1 && echo " Ok." || echo " Error !"
  date +%X
else
  echo "file not found p$1'"
fi
}

# Build All enterprise / version / 32bits for remi (php 5.4)
mock54i()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  echo -n "$(date +%X) el6  "
  setarch i686    mock $quiet --configdir=$mocketc -r el6i  --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) el5  "
  setarch i686    mock $quiet --configdir=$mocketc -r el5i  --arch i386 rebuild $1 && echo " Ok." || echo " Error !"
  date +%X
else
  echo "file not found p$1'"
fi
}

# Build All distribution / version / 32bits for remi/remi-php55
mock55i()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  echo -n "$(date +%X) 55 el6  "
  setarch i686    mock $quiet --configdir=$mocketc -r el6i55  --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) 55 el5  "
  setarch i686    mock $quiet --configdir=$mocketc -r el5i55  --arch i386 rebuild $1 && echo " Ok." || echo " Error !"
  date +%X
else
  echo "file not found p$1'"
fi
}

# Build All distribution / version / 32bits for remi/remi-php56
mock56i()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  echo -n "$(date +%X) 56 fc20 "
  setarch i686    mock $quiet --configdir=$mocketc -r fc20i56 --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) 56 fc19 "
  setarch i686    mock $quiet --configdir=$mocketc -r fc19i56 --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) 56 el6  "
  setarch i686    mock $quiet --configdir=$mocketc -r el6i56  --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) 56 el5  "
  setarch i686    mock $quiet --configdir=$mocketc -r el5i56  --arch i386 rebuild $1 && echo " Ok." || echo " Error !"
  date +%X
else
  echo "file not found p$1'"
fi
}

# Build All distribution / version / 32bits for remi/remi-php70
mock70i()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  echo -n "$(date +%X) 70 fc21 "
  setarch i686    mock $quiet --configdir=$mocketc -r fc21i70 --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) 70 fc22 "
  setarch i686    mock $quiet --configdir=$mocketc -r fc22i70 --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) 70 el6  "
  setarch i686    mock $quiet --configdir=$mocketc -r el6i70  --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  date +%X
else
  echo "file not found p$1'"
fi
}

# Build all distribution / version / 32bits for remi-test
mockallit()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22
  do
    echo -n "$(date +%X) test-fc$i "
    setarch i686  mock $quiet --configdir=$mocketc -r fc${i}it  --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  done
  echo -n "$(date +%X) test-el6  "
  setarch   i686  mock $quiet --configdir=$mocketc -r el6it     --arch i686 rebuild $1 && echo " Ok." || echo " Error !"
  echo -n "$(date +%X) test-el5  "
  setarch   i686  mock $quiet --configdir=$mocketc -r el5it     --arch i386 rebuild $1 && echo " Ok." || echo " Error !"
  date +%X
else
  echo "file not found p$1'"
fi
}

# Build All distribution / version / 64bits for remi
mockallx()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22 20 19
  do
    echo -n "$(date +%X) fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}x rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6 5
  do
    echo -n "$(date +%X) el$i  "
    mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build enterprise / version / 64bits for remi (php 5.4)
mock54x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 7 6 5
  do
    echo -n "$(date +%X) el$i  "
    mock $quiet --configdir=$mocketc -r el${i}x rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/remi-php55
mock55x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 7 6 5
  do
    echo -n "$(date +%X) 55 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}x55 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/remi-php56
mock56x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 20 19
  do
    echo -n "$(date +%X) 56 fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}x56 rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6 5
  do
    echo -n "$(date +%X) 56 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}x56 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/remi-php70
mock70x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22
  do
    echo -n "$(date +%X) 70 fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}x70 rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6
  do
    echo -n "$(date +%X) 70 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}x70 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/scl-php70
mockscl70x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22 20
  do
    echo -n "$(date +%X) scl70 fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}xscl70 rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6
  do
    echo -n "$(date +%X) scl70 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}xscl70 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/scl-php56
mockscl56x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22 20 19
  do
    echo -n "$(date +%X) scl56 fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}xscl56 rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6
  do
    echo -n "$(date +%X) scl56 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}xscl56 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/scl-php55
mockscl55x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22
  do
    echo -n "$(date +%X) scl55 fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}xscl55 rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6
  do
    echo -n "$(date +%X) scl55 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}xscl55 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi/scl-php54
mockscl54x()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22 20 19
  do
    echo -n "$(date +%X) scl54 fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}xscl54 rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6
  do
    echo -n "$(date +%X) scl54 el$i  "
    mock $quiet --configdir=$mocketc -r el${i}xscl54 rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}

# Build All distribution / version / 64bits for remi-test
mockallxt()
{
quiet=""
if [ "$1" = "-q" ]; then
    quiet="--quiet"
    shift
fi

if [ -f "$1" ]; then
  for i in 21 22
  do
    echo -n "$(date +%X) test-fc$i "
    mock $quiet --configdir=$mocketc -r fc${i}xt rebuild $1 && echo " Ok." || echo " Error !"
  done
  for i in 7 6 5
  do
    echo -n "$(date +%X) test-el$i  "
    mock $quiet --configdir=$mocketc -r el${i}xt rebuild $1 && echo " Ok." || echo " Error !"
  done
  date +%X
else
  echo "file not found '$1'"
fi
}