From 23d091a3087aec417de26768020a6bf0d84f5b0d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 1 Dec 2010 17:24:38 -0500 Subject: [PATCH] give sensible values for the volume label and use it for .iso filename --- live/auto/build | 9 +++++++++ live/auto/config | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/live/auto/build b/live/auto/build index 03015cf..df0f4fb 100755 --- a/live/auto/build +++ b/live/auto/build @@ -1,2 +1,11 @@ #!/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" diff --git a/live/auto/config b/live/auto/config index 6f84280..30bcc3b 100755 --- a/live/auto/config +++ b/live/auto/config @@ -5,6 +5,7 @@ set -eu # 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" @@ -21,7 +22,7 @@ fi 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 \ @@ -30,8 +31,9 @@ lb config noauto \ --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/" \ -- 2.39.2