summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-17 11:42:42 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-17 11:42:42 +0000
commit50a12985dc574a093132bdf4d02ee5da2382679d (patch)
treef674f7b39b04f0c716e4a255762726fa359f8096
parent47d664904e6bf56d14d2c1de49a8558bd459875c (diff)
downloaddraklive-config-50a12985dc574a093132bdf4d02ee5da2382679d.tar
draklive-config-50a12985dc574a093132bdf4d02ee5da2382679d.tar.gz
draklive-config-50a12985dc574a093132bdf4d02ee5da2382679d.tar.bz2
draklive-config-50a12985dc574a093132bdf4d02ee5da2382679d.tar.xz
draklive-config-50a12985dc574a093132bdf4d02ee5da2382679d.zip
Update build_all.sh for latest version and file name changes.
Automatically extract the version from the settings.cfg file.
-rwxr-xr-xbuild_all.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build_all.sh b/build_all.sh
index 9a7c3f1..c881ffd 100755
--- a/build_all.sh
+++ b/build_all.sh
@@ -2,7 +2,7 @@
declare -A desktops
-release=6
+version=$(grep version config/settings.cfg | sed s/version=//)
archs="i586 x86_64"
@@ -14,8 +14,8 @@ desktops[x86_64]="GNOME Plasma Xfce"
for arch in $archs; do
for desktop in ${desktops[$arch]}; do
sudo -u draklive sudo /usr/bin/draklive2 --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
+ sudo -u bcd mkdir -p /home/bcd/public_html/isos/trial-builds/Mageia-${version}-Live-${desktop}-${arch}
+ sudo -u bcd cp /home/draklive/var-data/build/Mageia-${version}-Live-${desktop}-${arch}/dist/* /home/bcd/public_html/isos/trial-builds/Mageia-${version}-Live-${desktop}-${arch}
# not enough space on rabbit's RAM disk for all four variants, so delete as we go
sudo -u draklive sudo /usr/bin/draklive2 --clean --define arch=$arch --define desktop=$desktop
done