Last change
on this file since 2381 was 2374, checked in by Bruno Cornec, 6 years ago |
Fix support for non pb projects ctn
|
-
Property svn:executable
set to
*
|
File size:
991 bytes
|
Rev | Line | |
---|
[2351] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
[2373] | 3 | PBPRJ=$1
|
---|
| 4 | DISTRO=$2
|
---|
| 5 | DISTROVER=$3
|
---|
| 6 | ORIGREPO=$4
|
---|
[2369] | 7 | ARCH=x86_64
|
---|
[2124] | 8 |
|
---|
[2369] | 9 | M=$DISTRO-$DISTROVER-$ARCH
|
---|
[2124] | 10 |
|
---|
[2373] | 11 | if [ _"$PBPRJ" = _"" ]; then
|
---|
| 12 | echo "Syntax: mkctn project distro version [repo]"
|
---|
| 13 | exit -1
|
---|
| 14 | fi
|
---|
[2369] | 15 | if [ _"$DISTRO" = _"mageia" ]; then
|
---|
| 16 | ORIGREPO=mageiaofficial
|
---|
| 17 | DISTROVER=${DISTROVER}-$ARCH
|
---|
| 18 | elif [ _"$DISTRO" = _"opensuse" ]; then
|
---|
| 19 | vm=`echo $DISTROVER | cut -d . -f1`
|
---|
| 20 | if [ $vm -ge 15 ] && [ $vm -lt 42 ]; then
|
---|
| 21 | ORIGREPO=opensuse/leap
|
---|
[2372] | 22 | else
|
---|
| 23 | ORIGREPO=$DISTRO
|
---|
[2369] | 24 | fi
|
---|
| 25 | else
|
---|
| 26 | ORIGREPO="$DISTRO"
|
---|
[2351] | 27 | fi
|
---|
| 28 |
|
---|
[2369] | 29 | echo "Working on $M ..."
|
---|
[2356] | 30 | echo "-----------------------------------"
|
---|
[2369] | 31 | if [ _"$DISTRO" != _"mageia" ]; then
|
---|
| 32 | docker pull ${ORIGREPO}:$DISTROVER
|
---|
| 33 | fi
|
---|
| 34 | pb -p pb -T docker --stop-on-error -m $M newve -i ${ORIGREPO}:$DISTROVER && \
|
---|
[2374] | 35 | pb -p pb -T docker --stop-on-error -m $M sbx2setupve all
|
---|
| 36 | if [ $PBPRJ != "pb" ]; then
|
---|
| 37 | pb -p $PBPRJ -T docker --stop-on-error -m $M sbx2build all
|
---|
| 38 | fi
|
---|
[2373] | 39 | pb -p $PBPRJ -T docker --stop-on-error -m $M prepve && \
|
---|
| 40 | pb -p $PBPRJ -T docker --stop-on-error -m $M build2ve
|
---|
[2356] | 41 | docker image prune -f
|
---|
[2124] | 42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.