summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-17 17:33:05 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-17 17:33:05 +0100
commit9d2a05ff4b28c232d3ecbe1af7df8c374697aa6b (patch)
tree6fd4db88f84cc99ef51d0708b1b63dec7507cbcc
parent18186e5bcf184470fb65ae369e3512579d4859d4 (diff)
downloaddrakclassic-config-9d2a05ff4b28c232d3ecbe1af7df8c374697aa6b.tar
drakclassic-config-9d2a05ff4b28c232d3ecbe1af7df8c374697aa6b.tar.gz
drakclassic-config-9d2a05ff4b28c232d3ecbe1af7df8c374697aa6b.tar.bz2
drakclassic-config-9d2a05ff4b28c232d3ecbe1af7df8c374697aa6b.tar.xz
drakclassic-config-9d2a05ff4b28c232d3ecbe1af7df8c374697aa6b.zip
Add build_all script.
-rwxr-xr-xbuild_all.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/build_all.sh b/build_all.sh
new file mode 100755
index 0000000..317c3b2
--- /dev/null
+++ b/build_all.sh
@@ -0,0 +1,19 @@
+#!/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