summaryrefslogtreecommitdiffstats
path: root/build_all.sh
blob: 0b30f91ffce65be7269eb382eb9d38ea48a5f549 (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
#!/bin/bash

declare -A desktops

distro=$(grep distro config/settings.cfg | sed s/distro=//)
version=$(grep version config/settings.cfg | sed s/version=//)
workdir=$(grep workdir config/settings.cfg | sed s/workdir=//)
destdir=/home/bcd/public_html/isos/trial-builds

archs="i586 x86_64"

desktops[i586]="Xfce"

desktops[x86_64]="GNOME Plasma Xfce"

case $(hostname) in
  *.mageia.org)  sudo_root="sudo -u draklive sudo"; sudo_bcd="sudo -u bcd";;
esac

./update_bootloader_files.sh
for arch in $archs; do
  for desktop in ${desktops[$arch]}; do
    $sudo_root draklive2 --clean --all --define arch=$arch --define desktop=$desktop
    $sudo_bcd  mkdir -p $destdir/$distro-$version-Live-$desktop-$arch
    $sudo_bcd  cp $workdir/$distro-$version-Live-$desktop-$arch/dist/* $destdir/$distro-$version-Live-$desktop-$arch/
    # not enough space on rabbit's RAM disk for all four variants, so delete as we go
    $sudo_root draklive2 --clean --define arch=$arch --define desktop=$desktop
  done
done