summaryrefslogtreecommitdiffstats
path: root/build_all.sh
blob: 284291371ac9b520e39d777842cc028be580720e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

declare -A desktops

release=6

archs="i586 x86_64"

desktops[i586]="Xfce"

desktops[x86_64]="GNOME Plasma Xfce"

./update_media.sh
./update_bootloader_files.sh
for arch in $archs; do
  for desktop in ${desktops[$arch]}; do
    sudo -u draklive sudo /usr/sbin/draklive --clean --all --define arch=$arch --define desktop=$desktop
    sudo -u bcd mkdir -p /home/bcd/public_html/isos/trial-builds/Mageia-${release}-LiveDVD-${desktop}-${arch}-DVD
    sudo -u bcd cp /home/draklive/var-data/build/Mageia-${release}-LiveDVD-${desktop}-${arch}-DVD/dist/* /home/bcd/public_html/isos/trial-builds/Mageia-${release}-LiveDVD-${desktop}-${arch}-DVD
    # not enough space on rabbit's RAM disk for all four variants, so delete as we go
    sudo -u draklive sudo /usr/sbin/draklive --clean --define arch=$arch --define desktop=$desktop
  done
done