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

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

archs="i586 x86_64"

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

./update_bootloader_files.sh
for arch in $archs; do
  isoname=$distro-$release-$arch
  $sudo drakclassic --clean --all --define arch=$arch
  $sudo mkdir -p $destdir/$isoname
  $sudo cp $workdir/$isoname/dist/* $destdir/$isoname/
done