#!/bin/sh
+
lb build noauto ${@} 2>&1 | tee binary.log
+
+iso=binary-hybrid.iso
+release_name=$(isoinfo -d -i "${iso}" \
+ | sed -n -e '/Volume id:/s,.*: *,,gp' \
+ | sed -e 's, [Ll]ive,-live,g' \
+ | tr 'A-Z ' 'a-z_' \
+ | sed -e 's,[()],,g')
+mv binary-hybrid.iso "${release_name}.iso"
# the Debian release to use as a basis for the live-cd
nd_basedist="squeeze"
nd_version="6.0.0"
+nd_arch=i386
deb_mirror="http://debproxy:9999"
lb config noauto \
--apt apt \
--apt-recommends true \
- --architecture i386 \
+ --architecture ${nd_arch} \
--archive-areas "main contrib non-free" \
--binary-images iso-hybrid \
--binary-indices none \
--distribution ${nd_basedist} \
--hostname neurodebian \
--iso-application "NeuroDebian Live" \
- --iso-preparer "NeuroDebian v.{nd_version}; http://neuro.debian.net" \
+ --iso-preparer "NeuroDebian ${nd_version}; http://neuro.debian.net" \
--iso-publisher "NeuroDebian project; http://neuro.debian.net" \
+ --iso-volume "NeuroDebian Live ${nd_version} ($nd_arch)" \
--keyring-packages "debian-archive-keyring neurodebian-keyring" \
--memtest memtest86+ \
--mirror-bootstrap "${deb_mirror}/debian/" \