Changeset 2373


Ignore:
Timestamp:
Mar 1, 2019, 1:38:55 AM (3 months ago)
Author:
bruno
Message:

Add support forotherproject ctn build and use getconf for velist

Location:
devel/contrib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/contrib/mkallctn

    r2369 r2373  
    11#!/bin/bash
    22#
    3 vedir=`grep -2 vepath ~/.pbrc.yml | grep default: | cut -d: -f2`
    4 distros=`grep -2 velist $vedir/.pbrc.yml | grep default: | cut -d: -f2`
    53lwd=`dirname $0`
     4PBPRJ=$1
    65
     6if [ _"$PBPRJ" = _"" ]; then
     7    echo "Defaulting to building for pb itself"
     8    PBPRJ="pb"
     9fi
     10
     11distros=`pb -p $PBPRJ getconf velist`
    712for pbos in `echo $distros | sed 's/,/ /g'`;
    813do
    914    d=`echo $pbos | cut -d'-' -f1`
    1015    v=`echo $pbos | cut -d'-' -f2`
    11     $lwd/mkctn $d $v
     16    $lwd/mkctn $PBPRJ $d $v
    1217done
  • devel/contrib/mkctn

    r2372 r2373  
    11#!/bin/bash
    22#
    3 DISTRO=$1
    4 DISTROVER=$2
    5 ORIGREPO=$3
     3PBPRJ=$1
     4DISTRO=$2
     5DISTROVER=$3
     6ORIGREPO=$4
    67ARCH=x86_64
    78
    89M=$DISTRO-$DISTROVER-$ARCH
    910
     11if [ _"$PBPRJ" = _"" ]; then
     12    echo "Syntax: mkctn project distro version [repo]"
     13    exit -1
     14fi
    1015if [ _"$DISTRO" = _"mageia" ]; then
    1116    ORIGREPO=mageiaofficial
     
    2934pb -p pb -T docker --stop-on-error -m $M newve -i ${ORIGREPO}:$DISTROVER && \
    3035pb -p pb -T docker --stop-on-error -m $M sbx2setupve && \
    31 pb -p pb -T docker --stop-on-error -m $M prepve && \
    32 pb -p pb -T docker --stop-on-error -m $M build2ve
     36pb -p $PBPRJ -T docker --stop-on-error -m $M prepve && \
     37pb -p $PBPRJ -T docker --stop-on-error -m $M build2ve
    3338docker image prune -f
    3439
Note: See TracChangeset for help on using the changeset viewer.