source: ProjectBuilder/devel/contrib/mkallctn@ 2359

Last change on this file since 2359 was 2358, checked in by Bruno Cornec, 5 years ago

New opesuse distros have a new docker hub image name

  • Property svn:executable set to *
File size: 664 bytes
Line 
1#!/bin/bash
2#
3vedir=`grep -2 vepath ~/.pbrc.yml | grep default: | cut -d: -f2`
4distros=`grep -2 velist $vedir/.pbrc.yml | grep default: | cut -d: -f2`
5
6for pbos in `echo $distros | sed 's/,/ /g'`;
7do
8 d=`echo $pbos | cut -d'-' -f1`
9 v=`echo $pbos | cut -d'-' -f2`
10 # Check status to see whether we shodl go further
11 if [ _"$d" = _"mageia" ]; then
12 /users/bruno/svn-git/pb/devel/contrib/mkctn $d $v mageiaofficial
13 elif [ _"$d" = _"opensuse" ]; then
14 vm=`echo $v | cut -d . -f1`
15 if [ $vm -ge 15 ] && [ $vm -lt 42 ]; then
16 /users/bruno/svn-git/pb/devel/contrib/mkctn $d $v opensuse/leap
17 fi
18 else
19 /users/bruno/svn-git/pb/devel/contrib/mkctn $d $v
20 fi
21done
Note: See TracBrowser for help on using the repository browser.