]> git.donarmstrong.com Git - neurodebian.git/blobdiff - live/auto/build
give sensible values for the volume label and use it for .iso filename
[neurodebian.git] / live / auto / build
index 03015cf57b55787953b5a9ecfc7d73aa9c3e0fd8..df0f4fb39d13aa8d4b52c7a2f3785560c7dbafb8 100755 (executable)
@@ -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"