#!/bin/sh 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" case $(hostname) in *.mageia.org) sudo="sudo -u bcd";; esac ./update_bootloader_files.sh for arch in $archs; do $sudo drakclassic --clean --all --define arch=$arch $sudo mkdir -p $destdir/$distro-$version-${arch} $sudo cp $workdir/$distro-$version-$arch/dist/* $destdir/$distro-$version-${arch}/ done